Jump to content


How Can I Clear Chart?


  • Please log in to reply
4 replies to this topic

#1 thenndral

thenndral

    Advanced Member

  • Members
  • PipPipPipPip
  • 33 posts

Posted 04 October 2012 - 08:04 AM

Hello,

I'm using Fusion chart - vb6.0

How can I clear chart and show customize message?

I have 2 tabs, first tab contain grid and second one for displaying chart.
My requirement, when the user cick List box, data show in grid control and draw chart.
I need to clear chart area and show custom message.

How can I make it?

I check SetChartMessage, but it doesn't helps me.
Call FusionCharts1.SetChartMessage(Chart_Load_on_Progress, "Loading....") [b]'Is it right way to call.[/b]


Thanks in Advance,
thenndral

#2 Rahul Kumar

Rahul Kumar

    Supreme Being

  • L1 Moderators
  • 1259 posts

Posted 04 October 2012 - 04:33 PM

Hi,

Could you please try this code:

Private Sub Form_Click()
    FusionCharts1.setDataXML = "<chart/>"
    Call FusionCharts1.SetChartMessage(No_data_to_display, "Please click on the list above to see the chart")
    FusionCharts1.RenderChart
End Sub

Regards,
Rahul Kumar
Tech Lead


A byte of magic.

#3 thenndral

thenndral

    Advanced Member

  • Members
  • PipPipPipPip
  • 33 posts

Posted 05 October 2012 - 12:20 AM

Hi Rahul,

Posted Image Great. Works like a charm.

Thanks Again,
thenndral

Hi,

Could you please try this code:

Private Sub Form_Click()
    FusionCharts1.setDataXML = "<chart/>"
    Call FusionCharts1.SetChartMessage(No_data_to_display, "Please click on the list above to see the chart")
    FusionCharts1.RenderChart
End Sub



#4 Rahul Kumar

Rahul Kumar

    Supreme Being

  • L1 Moderators
  • 1259 posts

Posted 05 October 2012 - 05:29 AM

You are most welcome :)
Regards,
Rahul Kumar
Tech Lead


A byte of magic.

#5 KarenHeinz

KarenHeinz

    Forum Newbie

  • Members
  • 2 posts

Posted 08 December 2016 - 10:33 AM

Thank you for your solution. I had same problem.