Itération 122442
Itération 122442

Reputation: 2962

Using ng2-charts, how to "zoom out"?

"Zooming" is not the correct word, but I can't find any other more suitable word for what I am looking for.

Currently, I have this result: enter image description here

As you can see, the horizontal annotation labels are cut in half due to the value of the chart being in the interval.

I would like the chart to "zoom out" so that I can read the annotation labels. Note that I am not looking for dynamic zooming with mouse wheel or whatever. I just want the view to include Y values a bit superior and inferior to what they currently are.

An example of desired result (with extrem paint skills):

enter image description here

Upvotes: 0

Views: 418

Answers (1)

jalei005
jalei005

Reputation: 190

I think the answer of your problem is here. You can just modify the options of your chart. Please let me know if it does not work and provide some code then. Then I can try to give you a working example.

Upvotes: 1

Related Questions