-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Hi,
I have a problem using this plugin when i simply add the plugin output this code:
<li class="ct-series-0 inactive" data-legend="0">function () { // 892
// 893
// If the string looks like an identifier, then we can return it as is. // 894
// If the string contains no control characters, no quote characters, and no // 895
// backslash characters, then we can simply slap some quotes around it. // 896
// Otherwise we must also replace the offending characters with safe // 897
// sequences. // 898
// 899
if (ix.test(this)) { // 900
return this; // 901
} // 902
if (nx.test(this)) { // 903
return '"' + this.replace(nxg, function (a) { // 904
var c = escapes[a]; // 905
if (c) { // 906
return c; // 907
} // 908
return '\\u' + ('0000' + a.charCodeAt().toString(16)).slice(-4); // 909
}) + '"'; // 910
} // 911
return '"' + this + '"'; // 912
}
</li>
Just simply use :
require('chartist-plugin-legend');
new Chartist.Bar('.ct-chart', data, {
stackBars: true,
plugins: [
Chartist.plugins.legend()
]
},
});
Metadata
Metadata
Assignees
Labels
No labels