-
Notifications
You must be signed in to change notification settings - Fork 2
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
Additional properties #14
Comments
Hey Damian, Good question. Unfortunately the lower level APIs that I'm leveraging don't allow such granular control. I was musing at a way to redo the low level stuff and make it more programmatic but landed on that that would take a more complete overhaul of the canvas drawing system. Looking into it a little bit more, I see the underlying |
Thanks for answer I was working on the workaround this problem and for now can make some changes through the references for the Smoothie Component, for milisPerPixel. Unfortunately the changing color I could not achieve with the gradient object because currently it accepts only string afaik. For changing the stroke style Im just dropping data by removeTimeSeries method and addding it immedietaly with the style I want with addTimeSeries. Of course everything with the useRef Hook. |
I'm not sure about As for "it accepts only string", that was my point about "you might have some types to figure out". Something like I'll see if I can't add the missing types for you. |
I just pushed a version to Github to try this. I am holding back publishing to Npm until you (or anyone) test this a little more. In case you need the command, this should let you use the default (master) branch version directly from Github. npm i cinderblock/react-smoothie |
Ok thanks! I will check it but unfortunately I will get to it on Monday but I will get back to you if everything works or something is quite not working. |
Oh and one more question. The one only way to add data to series is through .append right? You need to append every array with two values? And you cannot send like more these arrays at once? |
The way SoothieCharts is designed, each "TimeSeries" is just that, a series of single value data points in time, and they are each independent. So different datasets must be added to separate |
Hi, today i tried to install the package through the command that you told me. Unfrotunately after starting the project I've got an error in the console.
|
Oops. Lol. What'd I break!?! Looking into it. Probably because I changed I should probably add some tests... |
How is the progress on that one? Just wondering how the things are hanging out 🤔 |
I just pushed a version that seems to have fixed these things. Looking into the new style options, they depend on being able to access the DOM's |
I updated package and now works without problem But I have problem with the gradient as you wrote about it. Because I am little bit confused if it is avaiable to write or not? I think I need to say that I use react js with it and I tried to apply gradient through reference with CanvasGradient but no luck. I will try other things but if you have idea how to call out method that will draw gradient instead of static color I would be grateful for tips |
How are the things doing with it? Is there any progress? |
Hi,
I would like yo know if there is any possibility to change "on fly" other properties like millisPerPixel or style/color of the line based on what I send? I know that streamDelay can be adjusted like that but not other options and it seems that only one option to apply these changes is to refresh whole component 🤔
Greetings
Damian Filipkiewicz
The text was updated successfully, but these errors were encountered: