Description
Description
Revisions and Commits
Revisions and Commits
Status | Assigned | Task | ||
---|---|---|---|---|
Wontfix | None | T23104 Deprecate QmitkPlotWidget | ||
Resolved | • kleina | T23468 Display data points without connecting line in MitkChart |
Event Timeline
Comment Actions
Try https://stackoverflow.com/questions/29150816/c3-js-making-line-appear-dashed
Instead of dashed line, make line invisible:
c3-line.lineoff {visibility:hidden;}
Comment Actions
Works on fiddle: http://jsfiddle.net/azurelogic/wn3vzn0k/
Javascript:
var hideLine = true; var targetClass = ""; if (hideLine==true){ targetClass = 'lineoff'; } else{ targetClass = 'show'; } var chart = c3.generate({ data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250] ], classes: { data1: targetClass } } });
CSS:
.c3-target-lineoff{ stroke-dasharray: 0,5; } .c3-target-show{ stroke-dasharray: 5,5; }
TODO:
- get dataName ('data1') from data
- implement function in MITK
Comment Actions
Instead of hiding the line one could just use a scatter plot... I will look into this next time