c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Modify data.keys.value with data.json and category axis while chart.load()

Open norecces opened this issue 11 years ago • 2 comments

Hi,

Cant figure out how to redefine key.value with chart load keys. Look at http://jsfiddle.net/norecces/1jj8y21m/1/

on chart.generate I have

keys: {
    x: 'name', // it's possible to specify 'x' when category axis
    value: ['upload', 'download'],
}

and then I want to update only keys.value

chart.load({
        keys: {
            x: 'name',
            value: ['upload'],
        }
    });

Which I thought should remove 'download' seria. Any suggestions ?

norecces avatar Mar 17 '15 14:03 norecces

Try this

chart.load({
keys: {
            x: 'name',
            value: ['upload'],
        },
        unload: ['download']
});

vladsu avatar Mar 27 '15 01:03 vladsu

Hi there! We try to keep the issue queue clear for specific code-related problems with C3, Could you please try asking your question on either the Google Group or Gitter instead?

Thank you!​

michaelrodov avatar May 19 '16 20:05 michaelrodov