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

  1. To find views that use the Flash chart control, global search under the schema folder for .axvw files containing:
    • type=”chart”

    • ab-chart.js

  2. Change the chart type in the .axvw file to htmlChart .

    <panel type=“htmlChart” controlType="columnChart">
    …</panel>

  3. Change the templates to have export actions for .png, .jpg, and .pdf files, but not for .doc files.
  4. 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's config object.
  5. API Note
    loadChartSWFIntoFlash remove
    getSWaddLineFControl
    addTargetLine Not supported
    setCalloutGap Not supported
    setInsideLabelSizeLimit Not supported
    setSolidFillColors Not supported
    setGradientFillColors Not supported
    setDataTipFunction Not supported
  6. Replace the configuration instructions for groupingAxis .


    For example, replace

    chartPanel.configObj.groupingAxis[0].title = ...

with

chartPanel.config.groupingAxis[0].title = ...

  1. Replace configObj with config .


    For example, replace

    chartPanel.configObj.groupingAxis[0].title = ...

    with

    chartPanel.config.groupingAxis[0].title = ...