Infinity line will be shown in chart
Infinity and negative infinity line should not be shown in the chart
by YeongCY
HTML
<script src="https://cdn.zoomcharts-cloud.com/1/latest/zoomcharts.js"></script>
<content>
<div id="demo"></div>
</content>
JavaScript
chart= new FacetChart({
"series": [
{
"name": "GDP by industry, max 2016",
"data": {
"field": "2012",
"aggregation": "max"
},
"style": {
"fillColor": "#eab404",
"lineColor": "#eab404"
},
"type": "line"
},
{
"name": "GDP by industry, min 2006",
"data": {
"field": "2006",
"aggregation": "min"
},
"style": {
"fillColor": "#2fc32f",
"lineColor": "#2fc32f"
},
"type": "columns"
}
],
"container": "demo",
"data": [
{
"url": "https:\/\/zoomcharts.com\/data\/us-economy.json"
}
],
"toolbar": {
"fullscreen": true,
"enabled": true
},
"interaction": {
"resizing": {
"enabled": false
}
},
valueAxisDefault: {
"thresholds": [
{
"from": "1000",
"to": "Infinity",
"position": "above",
"style": {
"lineColor": "red",
"lineDash": [
3,
3
],
"fillColor": null
},
"label": "From",
"labelStyle": {
"padding": 5,
"textStyle": {
"font": "12px arial"
},
"backgroundStyle": {
"lineColor": "#ccc",
"lineWidth": 1,
"fillColor": "rgba(0,0,255,0.5)"
},
"borderRadius": 5
},
...