You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onclick seems to be driven by the x-value of the click, instead of the actual element clicked. I'm investigating this presently, but given #1965 it's unlikely any fix will be incorporated in the library. I'll post back if I find anything productive.
I have a setup:
var chart = c3.generate({
"data":{
"onclick" : function(d) {
console.log(d.name);
} ,
},
"size":{
"width":null,
"height":null
},
"grid":{
"x":{
"lines":[
{
"value":"08-02-2017",
"class":"dashed"
},
{
"value":"09-02-2017",
"class":"dashed"
}
]
},
"y":{
"show":true
}
},
"axis":{
"x":{
"type":"category",
"categories":[
"08-02-2017",
"09-02-2017"
]
},
"rotated":false,
"y":{
"tick":{
"values":[
0.0,
10.0,
20.0,
30.0,
40.0,
50.0,
60.0,
70.0,
80.0,
90.0,
100.0
]
},
"padding":{
"top":0
}
}
},
"title":{
"text":""
},
"legend":{
"show":true
},
"tooltip":{
"show":true
},
"padding":{
}
});
and by clicking on each datapoint - onclick is called multiple times instead of one. Please help. It seems an issue. Thanks
The text was updated successfully, but these errors were encountered: