You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @objectum and @samortsev , I am using xlsx-chart package in node.js to create charts in excel. But I am unable to reduce the size of chart and I want to create a chart in the right side of the sheet. I am unable to do that. So please help me how to do this ASAP. I am using the below code
Hi @objectum and @samortsev , I am using xlsx-chart package in node.js to create charts in excel. But I am unable to reduce the size of chart and I want to create a chart in the right side of the sheet. I am unable to do that. So please help me how to do this ASAP. I am using the below code
var fs = require ("fs");
var XLSXChart = require ("./../chart");
var xlsxChart = new XLSXChart ();
var opts = {
titles: [
"Title 1",
"Title 2",
"Title 3"
],
fields: [
"Field 1",
"Field 2",
"Field 3",
"Field 4"
],
data: {
"Title 1": {
"chart": "column",
"Field 1": 5,
"Field 2": 10,
"Field 3": 15,
"Field 4": 20
},
"Title 2": {
"chart": "column",
"Field 1": 10,
"Field 2": 5,
"Field 3": 20,
"Field 4": 15
},
"Title 3": {
"chart": "line",
"Field 1": 20,
"Field 2": 15,
"Field 3": 10,
"Field 4": 5
}
},
chartTitle: "Column and line chart"
};
xlsxChart.generate (opts, function (err, data) {
if (err) {
console.error (err);
} else {
fs.writeFileSync ("columnLine.xlsx", data);
console.log ("columnLine.xlsx created.");
};
});
The text was updated successfully, but these errors were encountered: