We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var chart = c3.generate({ data: { type: "area", groups: [['data1', 'data2']], columns: [ ['data1', 30, 200, 60, 400, 150, 250], ['data2', 50, 20, 50, 40, 15, 25] ], regions: { 'data1': [{'start':1, 'end':2, 'style':'dashed'},{'start':3}], // currently 'dashed' style only 'data2': [{'end':3}] } } });
http://jsfiddle.net/7ydhyjm3/2/
The text was updated successfully, but these errors were encountered:
Hi there, I was having a similar issue. I ended up finding that groups were the issue. Try splitting your groups like this (it seems to work for me):
var chart = c3.generate({ data: { type: "line", groups: [['data1'], ['data2']], columns: [ ['data1', 30, 200, 60, 400, 150, 250], ['data2', 50, 20, 50, 40, 15, 25] ], regions: { 'data1': [{'start':1, 'end':2, 'style':'dashed'},{'start':3}], // currently 'dashed' style only 'data2': [{'end':3}] } } });
If you change your graph to spline, it won't work though, but that's a different story :)
var chart = c3.generate({ data: { type: "spline", groups: [['data1'], ['data2']], columns: [ ['data1', 30, 200, 60, 400, 150, 250], ['data2', 50, 20, 50, 40, 15, 25] ], regions: { 'data1': [{'start':1, 'end':2, 'style':'dashed'},{'start':3}], // currently 'dashed' style only 'data2': [{'end':3}] } } });
Sorry, something went wrong.
No branches or pull requests
http://jsfiddle.net/7ydhyjm3/2/
The text was updated successfully, but these errors were encountered: