-
Notifications
You must be signed in to change notification settings - Fork 6
Timeline API x-axis y-coordinates property #55
Comments
|
I am using Windows. For simplicity's sake, I've used https://engineering.cerner.com/carbon-graphs/#/timeline/simple as an example. Original Timeline implementation An example of what we are trying to achieve using CSS transformation in CHROME (works) It is a known issue that CSS transformation on svg elements are not supported for IE. Firebox seems to be supported but have not tested. https://caniuse.com/#search=transform So as a consumer of carbon timeline api, is there currently any property that allows me to move the x-axis up or down as per the screenshot? |
@leducquan What's the reason to move x-axis up or down? Is there any specific requirement? |
@Veera81 Yes, there is a requirement for our Event timeline to move the x-asis up slightly from the original position as we require custom positioning. Please see https://jira2.cerner.com/browse/UKIPDEV-1234 for more details. |
@leducquan Thanks for providing the details. Have you tried other than transform functions? |
@Veera81 , what other way do you suggest? |
@leducquan Can we close this issue? Looks like the JIRA is closed |
no please keep this open, we still need a property exposed to us to allow us to shift the x-axis up or down. |
@leducquan the design provided above by @erinplourde is the same as requested for issue cerner/carbon-graphs#225. Would this meet your needs if we provide the functionality to opt into the shift/padding and the lines separately? In your original screenshots, the shapes were rendered below the eventline. Is this required for your use case? We would prefer keeping the shapes on the event line as noted in the design above. |
@mraplumb Would be great. Please keep the shapes on the event line as per the design posted by @erinplourde , my above example was just to illustrate that we needed a property to allow us to shift the event line up or down. |
@erinplourde Looks like his exact requirement in this issue is to add an extra property which will move axis up and down as shown in below image. What consumer is expecting from us: Please let us know UX team thoughts on this issue. |
@erinplourde to clarify, the request from @leducquan appears to keep the shapes below the timeline which is different from the visual you previously provided where the shapes remain on the timeline. |
@mraplumb @AshishMotanamGurunadham Hmm I see... Is there a way we are able to move the axis with the symbols? I would like to prevent consumers from plotting the symbols below the timeline but I understand what the stella team is trying to achieve. |
I'll let @AshishMotanamGurunadham correct me if I'm wrong but I believe the consumer would provide use the same information they do today but could provide an additional value which moves the timeline up or down. Technically speaking, we can move the timeline independent of the shapes or move them together. If we keep the shapes on the timeline, are we really just talking about extending the distance between the timeline and the tic values (i.e. 10am, 11am...etc.)? |
@erinplourde Yes we can able to move the axis with symbols. But as you know looks like stella team only want to move axis up and down. Even if we implement a feature which move symbols with aixs, i think it won't be much useful for stella team. Correct me if am wrong. |
After discussion, we have decided to make an update to allow increasing the padding below the timeline graph, but the shapes will remain on the timeline itself. |
Request:
A property on the timeline API to allow consumers to change the y-coordinate of the x-axis line relative to the svg container.
Reason:
Above css styling works in Chrome, but does not work in IE as it does not support transformations of svg elements.
The text was updated successfully, but these errors were encountered: