highcharts-export-server
Version:
Convert Highcharts.JS charts into static image files.
50 lines (49 loc) • 1.43 kB
JSON
{
"export": {
"options": {
"chart": {
"styledMode": true,
"type": "column"
},
"title": {
"text": "Styling axes (Raw CSS with the default CSS file)"
},
"yAxis": [
{
"className": "highcharts-color-0",
"title": {
"text": "Primary axis"
}
},
{
"className": "highcharts-color-1",
"opposite": true,
"title": {
"text": "Secondary axis"
}
}
],
"plotOptions": {
"column": {
"borderRadius": 5
}
},
"series": [
{
"data": [1, 3, 2, 4]
},
{
"data": [324, 124, 547, 221],
"yAxis": 1
}
]
}
},
"customLogic": {
"allowCodeExecution": true,
"allowFileResources": true,
"resources": {
"css": "@import url(https://code.highcharts.com/css/highcharts.css);.highcharts-yaxis .highcharts-axis-line{stroke-width:2px}.highcharts-color-0{fill:#f7a35c;stroke:#f7a35c}.highcharts-axis.highcharts-color-0 .highcharts-axis-line{stroke:#f7a35c}.highcharts-axis.highcharts-color-0 text{fill:#f7a35c}.highcharts-color-1{fill:#90ed7d;stroke:#90ed7d}.highcharts-axis.highcharts-color-1 .highcharts-axis-line{stroke:#90ed7d}#renderer-callback-label .highcharts-label-box,.highcharts-axis.highcharts-color-1 text{fill:#90ed7d}"
}
}
}