Custom Fill Colors for Charts
HTML Chart Control
Custom Fill Colors for Charts
Add-in managers can set custom colors for bars, columns, area or pie slices (e.g. green for “scheduled work”, yellow for “overdue work” and red for “work beyond SLA agreement”).
AXVW:
The "fillColor" property can now contain a comma-separated list of color codes. By default this property sets a list of solid fill colors. If the "fillColorDesaturated" property is also specified, the "fillColor" property specifies the first set of gradient colors.
The new "fillColorDesaturated" property contains a comma-separated list of color codes, which specifies the second set of gradient colors.
Java Script:
Set solid colors:
chartPanel.setSolidFillColors(colorArray);
Set gradient colors:
chartPanel.setGradientFillColors(fillType, fillColors1, fillColors2, percentGradientChange, percentTransparency)
fillType : "solid", "linearGradient", "radialGradient".
These Java Script functions cannot be called immediately after the chart is built. For example, they cannot be called from afterViewLoad or afterInitialDataFetch event listeners. They can only be called after the chart has been completely loaded, i.e. with a considerable delay.
Examples:
http://localhost:8080/archibus/schema/ab-products/solutions/parts/chart/ab-chart-pie-dynamic-properties.axvw
http://localhost:8080/archibus/schema/ab-products/solutions/parts/chart/ab-chart-improve-fillcolors.axvw