Skip to content

No png file is generated. #7

@hifall

Description

@hifall

My code is like:

const fs = require('fs');
const output = require('d3node-output');
const d3 = require('d3-node')().d3;
const d3nPie = require('d3node-piechart');

const csvString = fs.readFileSync('./data.csv').toString();
const data = d3.csvParse(csvString);
const options = {width: 200, height: 200};

output('./export', d3nPie({ data: data }), options);

After I run the above code, these files are generated: export.html and export.svg, but not export.png.

How can I generate png as well?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions