Convert Flash charts to HTML charts
Convert Flash charts to HTML charts
As part of Archibus V.23.2, all Archibus views were converted to use the HTML chart control instead of the Flash chart control.
You can convert your own customized views to use HTML charts instead of Flash charts.
Procedure
-
To find views that use the Flash chart control, global search under the schema folder for .axvw files containing:
-
type=”chart”
-
ab-chart.js
-
-
Change the
chart
type in the .axvw file tohtmlChart
.<panel type=“htmlChart” controlType="columnChart">
…</panel> - Change the templates to have export actions for .png, .jpg, and .pdf files, but not for .doc files.
-
Remove code specific to SWF files, such as
chartPanel.loadChartSWFIntoFlash();
This is necessary because Flash charts keep some configuration info in two places: the Flash Chart control itself and another in Panel control'sconfig
object.
-
Replace the configuration instructions for
groupingAxis
.
For example, replacechartPanel.configObj.groupingAxis[0].title = ...
API | Note |
loadChartSWFIntoFlash | remove |
getSWaddLineFControl | |
addTargetLine | Not supported |
setCalloutGap | Not supported |
setInsideLabelSizeLimit | Not supported |
setSolidFillColors | Not supported |
setGradientFillColors | Not supported |
setDataTipFunction | Not supported |
with
chartPanel.config.groupingAxis[0].title = ...
-
Replace
configObj
withconfig
.
For example, replacechartPanel.configObj.groupingAxis[0].title = ...
with
chartPanel.config.groupingAxis[0].title = ...