-
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
duration scale is missing #4
Comments
Here is my hack:
|
I hope this examples make it clear that a duration scale is missing :-) It somehow corresponds to the time scale, but |
Oh! I missed this issue. Thanks for examples I'll be back to this soon. |
I'm trying to figure out how to create duration scale and not really understand how it should work. Is it something like that?
|
There are two temporal amounts: Period (years) and Duration (minutes). I see two additional scales. To solve is how ticks are represented and formatted. There rest is easily doable. |
Hi @generateme
I am using wadogo to generate svg images in trateg. I supply price/time domain,
and then via wadogo I scale them to pixels. This is the code:
https://github.com/clojure-quant/trateg/blob/master/profiles/demo/src/demo/lib/svg.clj
Scaling works for :point, :line :series. But it fails for :ellipse. And the reason is that The radius of an ellipse
needs to be scaled via a DURATION, not via a date. I will for now specify a duration via two dates, and then
calculate the radius this way. But if I want to follow svg convention in the svg rendering, then it would be
very great to have durations.
I use this code to create durations from dates. at and bt are localdate. The duration I can easily add/remove
from a date, I can also multiply or divide it.
The text was updated successfully, but these errors were encountered: