-
Notifications
You must be signed in to change notification settings - Fork 648
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
Scatter plot data label position #644
Comments
Hi @afarghaly10 Thanks for reporting this - Fixed in the master branch, example below. var optsChartScat1 = {
x:0.5, y:0.6, w:'45%', h:3,
valAxisTitle : "Renters",
showValAxisTitle : true,
catAxisTitle : "Last 6 Months",
showCatAxisTitle : true,
showLabel : true, // Must be set to true or labels will not be shown
dataLabelPosition : 'b', // Options: 't'|'b'|'l'|'r'|'ctr'
};
slide.addChart( pptx.charts.SCATTER, arrDataScatter1, optsChartScat1 ); |
@gitbrent, I know this isn't quite the best place to ask this, but how do you plot scatter data-points that don't share x-axis values. From what I glean from the examples this always must be the case and I was thinking that pptxgenjs cannot do this, but @afarghaly10 screenshot suggests otherwise. |
@elezotte - i'm not sure, plus the screenshot from afarghaly10 doesn't look like it's from PptxGenJS... |
Did you found any solution for your question? |
@pabadl, sort of. I did find a couple of ways around this limitation that are less than ideal. The first involves layering charts, each with its own series of data: The second has only one chart, but ensures that each series has the same x-axis values, but hides the ones you don't need: |
Hello I want to change the data label position on a scatter plot
The text was updated successfully, but these errors were encountered: