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

Line chart circle positions #535

Closed
martinnormark opened this issue Nov 5, 2015 · 8 comments
Closed

Line chart circle positions #535

martinnormark opened this issue Nov 5, 2015 · 8 comments

Comments

@martinnormark
Copy link

The circles in a line chart doesn't position perfectly:
screenshot 2015-11-05 22 37 45

I wonder if this is caused by drawCubicEnabled, I've tried tweaking cubicIntensity but it gets off already around ~0.15.

@liuxuan30
Copy link
Member

Sorry for late reponse I was thinking someone could help on this.

Have you solved this or, could you provide the code to reproduce using ChartsDemo?

Becaues I can see the bottom circle is centered perfectly. I am not sure if you modified any _ChartXMin _deltaX etc. Anything changed for the transformer? Line chart only or combined chart?

@danielgindi
Copy link
Collaborator

This is how cubic lines work. The point of the value is not necessarily the highest or lowest point of the curve.
I'm not sure if we should even try to fix this...
@PhilJay thoughts?

@PhilJay
Copy link
Collaborator

PhilJay commented Feb 29, 2016

This is not really an issue.
As Daniel mentioned this is just how cubic lines work. Of course we could change that (somehow), but it would eliminate the natural behaviour of cubic lines.

@augustinAJ
Copy link

@danielgindi @PhilJay Could please tell me how to solve this issue. According to my requirement the circles should end at the coordinates.

@danielgindi
Copy link
Collaborator

I'm afraid there's not much we can do about it. That's how cubic lines work. That's by definition of the cubic function... See http://cdn-5.analyzemath.com/Graphing/cubic_graph_3.gif

@danielgindi
Copy link
Collaborator

Btw, you can try playing with cubicIntensity

@augustinAJ
Copy link

what does it do?

On Mon, Mar 21, 2016 at 3:28 PM, Daniel Cohen Gindi <
notifications@github.com> wrote:

Btw, you can try playing with cubicIntensity


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#535 (comment)

@danielgindi
Copy link
Collaborator

It controls the intensity of the cubic bezier.

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

5 participants