This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echartb.on('legendselectchanged', function(params) { | |
var legendObject = params.selected; // create variable from the selected: { object } | |
// console.log(legendObject) // {name: boolean-value, name: boolean-value} | |
// console.log(Object.values(legendObject)); // log to the console boolean values out of the key: value pair | |
var value1 = (Object.values(legendObject)[0]); // assign the boolean value in index[0] to value1 | |
var value2 = (Object.values(legendObject)[1]); // assign the boolean value in index[1] to value2 | |
// create a new option object to pass into myChart.setOption() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vars": { | |
"@gray-base": "#000000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#008b94, 6.5%)", | |
"@brand-success": "#B5BF35", |