Release notes > Version 2.13 from March 2011

Version 2.13 from March 2011

Availability

Available from CUSP site from March 15th 2011.

New capabilities

VML output – scalable VML (set with dpi=0) was not passed via the internal HTML parser so bold and italic failed to appear in the output. Some tags like <sub> can never work reliably here as we cannot adjust the typesize as the user scales the window, so gaps will appear if the default size is stretched and text will collide if it is shrunk.

Barcharts with log axes – data was not being rescaled correctly for XBarchart. Also adds Logarithmic to style for normal barchart, as this should scale all the data. ScatterPlot and BubbleChart also now support this style just to save time when both axes are to be logged.

RedrawAxes – will output any extant datumlines as well as over-drawing axes. This gives the user a way to get the datumlines imposed over the data values if required.

Trend lines – new placeholder added to EquationFormat CC=CorrelationCoefficient and R2=the square of this. EquationIndex is the position along the line, so we add EquationPosition as exact (x,y) in chart co-ordinates, unless the style is Absolute/Percentage which behave as per notes.


CMYK colour model – supported for solid and hatched colours. This works by using a base-100 encoding of the 4 ink proportions, so is restricted in accuracy to 2 dec pl or integer percentages, for example:

  Color orange = sp.UseCmyk(0,38,84,24);

is an orange with 24% black added. All the drivers except PostScript/PDF map these back to RGB for display using the same algorithm as GhostScript (subtractive). PS and PDF output checks for CMYK colours in the driver and calls setcmykcolor with the original 4 values. This permits the user to have exact control over the inks used by the printer.

Tables – allows explicit alignment of titles (using LabelStyle) and caption+stubs (using CaptionStyle) to tidy up appearance. Not sure how spanned headings should behave when the titles are aligned left or right (rather than the default of centred). For now they just follow the leaf nodes, but we may want to split them out and always centre them.

Barcharts – now take care to crop to the chart edge (VML breaks apart badly if we don’t) and kicks any affected value tags inside the bar as a clue something bad happened. For similar reasons, XBar just eliminates any bars which are outside the cropping area.

SetMarkerColors – adds an overload to take a list of colours as a string (names or HTML format) just to save a bit of typing while setting up tests!

XAML – rotated text with HTML tagging was misplaced, and drawn too small. Fixed.

SVG animations – could not be applied to gridlines (e.g. fade-in) or the chart clipping rectangle (to allow linegraphs to draw across the page). Added:

 ScriptTarget.ClipRect
 ScriptTarget.GridLines

to the list of targets for special effects.

SVG/VML – tips (and javascript expressions) on arbitrary targets (like Zones and Headings) were not being output by the SVG and VML drivers. Bug introduced in 2008 – fixed.


Send comments on this topic
© Dyalog Ltd 2013