Skip to content

Instantly share code, notes, and snippets.

View DaseinUXD's full-sized avatar

Mark W. Matthews DaseinUXD

  • Fort Worth, Texas
View GitHub Profile
@DaseinUXD
DaseinUXD / legendClick.js
Created March 30, 2017 15:54
JavaScript function to hide the yAxis label when the legend is clicked to hide a data series
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()
@DaseinUXD
DaseinUXD / config.json
Created March 26, 2017 01:28 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"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",