Opened 7 years ago

Closed 7 years ago

#16295 closed enhancement (wontfix)

Allow adding samy Y axis to both sides of chart

Reported by: ergo Owned by: Eugene Lazutkin
Priority: undecided Milestone: tbd
Component: Charting Version: 1.8.1
Keywords: Cc:
Blocked By: Blocking:

Description

Hi,

Because of nature of charts in my application and amount of plot points i need to build big and wide charts (over 3000px wide svg charts).

The current problem im facing now is that it would make sense to present SAME Y axis on both sides of chart.

Currently this doesnt seem possible with dojo charting components.

For stacked charts i would probably have to do something like this:

  • plot the chart placing Y axis on the left
  • make a dummy plot adding another Y axis - on right side this time
  • programmaticly hide all plots from dummy chart

This seems like a very big waste of resources and is against DRY principle - i have to code same thing twice basicly.

It would be great if i could add axis with exact same values to opposite side of chart.

Change History (1)

comment:1 Changed 7 years ago by cjolif

Resolution: wontfix
Status: newclosed

An less intrusive workaround is probably to create a second axis, not associate it to any plot, and adjust its parameters (min...) to what the first axis was computed to?

I think the right approach instead of allowing twice the same axis would be to have a better/easier separation of the axis (rendering) and scale (logic).

Then you could have 2 axis (one left, one right as there is indeed 2 renderings) sharing the same (unique) scale.

See also: #16338

I have created #16530 to track the wider issue and will close that one.

Note: See TracTickets for help on using tickets.