New to C3 here. I am trying to make a simple scatter plot. I thought this would work (c3_test.csv is the same data set from samples.)
var chart = c3.generate({
data: {
url: 'c3_test.csv',
x: 'data1',
columns: ['data2']
type: 'scatter'
}
});
but looks like this is not the way to go. This works,
var chart = c3.generate({
data: {
url: 'c3_test.csv',
filter: function (d) {
return d.id !== 'data1';
},
x:'data2',
type: 'scatter'
},
however, it would be helpful to know how to make the first method also give the desired output. Also, I am trying to load a tsv file; based on this, I thought I could just use the url interface, however, that doesn't seem to work. Again, I would appreciate any help on this as well. I am using https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.js. My csv(tsv) file is below.
TIA,
C.S.N
data1,data2,data3
20,180,400
40,150,310
70,120,470
50,170,400
80 200 380