Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Line Chart with circles #40

Open
ibrahimahmed-io opened this issue Jan 10, 2017 · 6 comments
Open

Line Chart with circles #40

ibrahimahmed-io opened this issue Jan 10, 2017 · 6 comments

Comments

@ibrahimahmed-io
Copy link

Can i achieve something like that?

captussre

What I need is just to have a single line with circles at each point.

Like the one from http://andreaferretti.github.io/paths-js-react-demo/

captasasdcure

@marzolfb
Copy link
Contributor

Circles on the points isn't something doable with the current codebase as it exists but it's certainly a reasonable feature request. You're welcome to try and implement it yourself and submit a PR. Otherwise, I'll keep this one open for someone else or me to implement.

@qiangspecial
Copy link

qiangspecial commented Feb 20, 2017

@IbrahimAmin i have the same question, are you achieve that?

@WeaVaer
Copy link

WeaVaer commented Jul 28, 2017

I was expecting to achieve this functionality for a certain long time also.
i.e. the option to be able to display the data points on the chart.

I also understand; this option would also help addressing issue #83 but a much better option would be to implement a 'monotone cubic interpolation' method instead of the basic bezier function in 'bezier.js' that would eliminate the 'overshooting' issue definitely.

I have run across many other libs that utilizes this functionality and those smoothline charts really shine in this aspect.
a good example is d3.js charts;
https://bl.ocks.org/mbostock/4342190 displays this problem beautifully;
check 'basis' and 'monotone' options to see it)

another example with code is;
http://blog.mackerron.com/2011/01/01/javascript-cubic-splines/

Otherwise basic bezier splines are always troublesome regarding 'overshooting' and 'displaying of nonexistent values' which practically renders smoothline charts useless practically.

I wish we could implement this functionality here.
Actually its only another spline calc function instead of the standard bezier function against the data points and could be implemented easily. I wish I could contribute but I dont quite get the hang of the code flow here in react-native-pathjs-charts.

@Softrabbit-de
Copy link

@Ibrahim-GHub have you had any success with pathjs or any other react native component?
Would really like archieve the same chart.

@ibrahimahmed-io
Copy link
Author

@Softrabbit-de I used this one in the end https://github.com/PhilJay/MPAndroidChart

@Softrabbit-de
Copy link

@Ibrahim-GHub thanks for your hint. I switched to Victory last week :)

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

No branches or pull requests

5 participants