Using Highcharts
Use Highcharts visuals to create custom chart types and visuals that use the Highcharts
Core library. To configure a Highcharts visual, you add a Highcharts JSON schema to
the visual. The Chart code editor provides contextual assistance and real-time validation to ensure that the
input JSON schemas are configured properly. For security reasons, the visual editor
does not accept CSS, JavaScript, or HTML code input.
- These JSON values are not supported in the Chart code editor: functions, dates, and undefined values.
- Links to GeoJSON files or other images are not supported.
- You cannot set field colors in Highcharts visuals. The default theme colors are always applied.
- Click , the Dashboards tab.
- Click Dashboard Designer, in the bottom-left corner.
- On the Analyses dialog, click New analysis or click , the Options button, next to an existing analysis and select Edit.
- On the analysis page, click , the Add visual button, on the toolbar.
- Click the Highcharts visual icon.
- In the Properties panel on the right, configure the visual.
- Under Display Settings, format the title and subtitle.For more information, see Formatting Titles and Subtitles in Visuals.
- Under Data point limit, enter the maximum number of data points that you want the visual to display in the
Number of data points to show field.Highcharts visuals can show up to 10,000 data points.
- Under Chart code, enter a JSON schema into the code editor and click Apply code.The editor provides contextual assistance and real-time validation to ensure that your input JSON is configured properly. You can see any identified errors or warnings in the Errors section.Note: For more information and code samples, see the resources available in the Reference section.
- Under Display Settings, format the title and subtitle.
- Add data to the visual by dragging fields from the Data panel on the left to the appropriate field wells in the Visuals panel:
- Drag dimensions to the Group by field well.
- Drag measures to the Value field well.
You can pull data from the fields added in the field wells by using thegetColumn
expression in the chart code. For more information, see JSON Expression Language for Highcharts.