Skip to content
New issue

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

Resize issue and unable to move the chart #25

Open
Shiva-Kumara opened this issue Oct 11, 2023 · 0 comments
Open

Resize issue and unable to move the chart #25

Shiva-Kumara opened this issue Oct 11, 2023 · 0 comments

Comments

@Shiva-Kumara
Copy link

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.");
};
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant