I am trying to dynamically load a region to a line chart in C3.js using the load api.
The column data loads fine but there is no change to the regions. I don't want to use the regions.add api because I require a dashed line for this project.
chart.load({
columns:[
['data2', 10, 30, 20, 50, 40, 60, 50]
],
regions: {
'data2': [{'start':3, 'style':'dashed'}]
}
});
I would really appreciate any help, I am so stuck - thank you!
regions
doesn't look like what their api demonstrates. Second,regions
sits outside ofdata
not inside likecolumns
. To change these dynamically you might have to do something different. – Malposition