We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I generate a chart, it returns a DIV enclosing a SVG. How can I get node-chartist to give me just the SVG?
The text was updated successfully, but these errors were encountered:
Follow the changes mentioned below.
const generate = R.curryN(3, co.wrap(function * (type, options, data) { const environment = yield chartist.initialize(); const window = environment.window; const Chartist = environment.Chartist; // process options options = is.function(options) ? options(Chartist) : options; if (is.not.json(options)) throw new TypeError('options must be an object or a function that returns an object.'); options = Ru.defaults({ legend: true }, options); // create chart const chart = yield generateChart(Chartist, window, type, options, data); const legend = options.legend ? generateLegend(data) : ''; - return `<div class="ct-chart">${chart}${legend}</div>`; + return `${chart}${legend}`; }));
Sorry, something went wrong.
No branches or pull requests
When I generate a chart, it returns a DIV enclosing a SVG. How can I get node-chartist to give me just the SVG?
The text was updated successfully, but these errors were encountered: