We now use Scalable Vector Graphics technology to render our charts in the HTML5 viewer. This keeps curves smooth and angles sharp, even when you zoom in.
Improved Table and Tablix Rendering
We have also fixed an issue with cell borders in HTML5 that allows us to render our Table and Tablix controls with precise and crisp lines and corners.
Frozen Row and Column Headers
We added two new properties to Table and Tablix data regions that are supported in the HTML5 viewer: FrozenRows and FrozenColumns.
These properties take a numeric value, but there are a couple of restrictions on the value you can enter.
- You can't enter a number higher than the number of header rows or columns in the data region.
- You can't enter a number that would split up any merged cells within the header row or column.
To illustrate how it works, first I'll show you the problem we're addressing with these properties. Here is what a Tablix looks like with the HTML5 viewer in Galley mode without setting the FrozenRows and FrozenColumns properties.
Now we'll go back to the designer and set the FrozenRows property to 2, and the FrozenColumns property to 3.
You can see that these are the only numbers that we can use for this Tablix based on the constraints I mentioned above. There are two header rows, but some of them are merged, so you can't use less than 2 for the value. Similarly, there are three header columns, but some of them merge all three columns, so you can't use less than 3.
Here is how it looks at run time in the HTML5 viewer.
We've added a Tooltip property to the chart data series that allows you to enter an expression showing details about the data represented by each data point. You can also enter an expression for a Tooltip to display anywhere in the chart area.
The first step to using this new feature is to open the Chart Data dialog. You can find the command in the Properties window.
Chart Data opens on the General tab. This Tooltip property is the one that displays a general tooltip when you hover anywhere in the chart.
Here I've added the classic "Hello world!" string, but you can use any expression.
Here's how this looks in the HTML5 viewer at run time.
The real reason you want tooltips, though, is to show details for each data point.
To do this, instead of the General tab, you use the Series Values tab. You can provide a tooltip for each series if you have more than one.
I used this expression:
="Sales: " & <span style="color: #0000ff;">format(</span>Sum(<span style="color: #ff00ff;">Fields!Sales.Value</span>)<span style="color: #0000ff;">,"$#,##0")</span>
Which automatically converts to this shorthand:
="Sales: " & format(Sum([Sales]),"$#,##0")
Notice that I concatenated a static string ("Sales: ") with an expression that gets the sales value. The part of the expression in pink is what actually grabs the values, and the blue is what I added to format the number as currency.
Now for the cool part. Here it is in the HTML5 viewer at run time.
I'll be blogging about the other new features in ActiveReports 11 Service Pack 1. In the meantime, you can check them out yourself by downloading the latest build!