0

Is it possible to download chart with additional data? For example add labels when chart.download() method is called, I want these labels to be visible on download result (.png image), but not in rendered view.

I have label described in chart component, with property: hidden:true.

I've dived deep in Ext.draw.Container source code, but still have no clue about how to resolve the mentioned case.

1 Answers1

1

Yes, but you will have to render two charts: Visible and "Invisible". In the following example I have two charts, the first one is visible, the second one is located below (You cannot see it because the scrolling is off). On clicking the Prevoew or Download button the "invisible" chart's .preview() and .download() methods are called.

FIDDLE

P.S. Code is not clean, it is just the proof of concept.

Arthur Rubens
  • 4,626
  • 1
  • 8
  • 11