Using HighCharts within LogiInfo
Good morning,
We have a requirement to provide a Gantt chart and we are finding the options within Logi Info a little basic.
I was considering exploring using the HighCharts API, my first question is has anyone had success with this? My first hurdle is how to combine a DataLayer and the HighCharts definition, I see for a Gantt I need a Series and Data Arrays, such as in this JSFiddle
With navigation - JSFiddle - Code Playground
TIA Martin
-
The include script element has a child element JSON Data which will accept any Logi Datalayer. The JSON Data can be configured to be returned as the value of a variable.
The JSON Style can be configured for Columns to Property Arrays, which will I think give you the necessary output data.
<Report ID="LogiForum.IncludeScript">
<Body>
<IncludeScript IncludedScript="console.log(data);">
<JsonData JsonVarName="data" ID="jsonData" JsonStyle="ColumnsToPropertyArrays" JsonOutput="Inline" JsonHumanReadable="True">
<DataLayer Type="Static">
<StaticDataRow Company="Acme" City="Washington D.C." Employee="Joe Schmoe" />
<StaticDataRow Company="Acme" City="Washington D.C." Employee="Mary Sheltz" />
<StaticDataRow Company="Acme" City="Boston" Employee="Dave Getz" />
<StaticDataRow Company="Acme" City="Boston" Employee="Tim Smith" />
<StaticDataRow Company="Amazon" City="Pittsburgh" Employee="Dan Blank" />
<StaticDataRow Company="Amazon" City="Pittsburgh" Employee="Marty McFly" />
<StaticDataRow Company="Amazon" City="Pittsburgh" Employee="Greta Green" />
<StaticDataRow Company="Amazon" City="Boston" Employee="Joe Mama" />
<DataLayerLink ID="dllinked" />
</DataLayer>
</JsonData>
</IncludeScript>
</Body>
</Report>1
Please sign in to leave a comment.
Comments
1 comment