Tying to add Dynamic inputs to AnyChart widget

0
I want to build the below chart (Column+ scatter), I am able to add the dynamic content to the columns through JSON. Here is my JSON structure look like  [  {    "x": [      1,      2,      3,      4    ],    "y": [      10,      15,      13,      17    ]  }]   Q.How can i add dynamic value to scatter line? Q.Is it even possible  Q. How can i change the color of scatter line and column    
asked
1 answers
0

Hi Gopi,

Use the below Json as same format for your requirement

 

"chart": {   

"type": "column" 

}, 

"title": {   

"text": "Column + Scatter Line Chart" 

}, 

"xAxis": {   

"categories": [1, 2, 3, 4] 

}, 

"yAxis": {   

"title": {     

"text": "Values"   

}, 

"series": [   

{     

"name": "Column Data",     

"type": "column",     

"data": [10, 15, 13, 17],     

"color": "#007bff"   

},   

{     

"name": "Scatter Line",     

"type": "spline",     

"data": [11, 14, 12, 16],     

"color": "#dc3545",     

"marker": {       

"enabled": true,       

"radius": 5,       

"fillColor": "#dc3545"     

}   

]}

answered