Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
UltraChart - Eventmodel
posted

Hi there,

Which event is fired on the chart after the MouseLeave event?

Background: I'd like tho render the labels on x and y axis like that:

            this.chartResult.Axis.Y.Labels.ItemFormatString = "<EURO_VALUE>";
            this.chartResult.Axis.X.Labels.ItemFormatString = "<TIME_VALUE>";
            Hashtable MyLabelHashTable = new Hashtable();
            MyLabelHashTable.Add("EURO_VALUE", new EuroRenderer());
            MyLabelHashTable.Add("TIME_VALUE", new TimeRenderer());
            this.chartResult.LabelHash = MyLabelHashTable;

Problem: After the MouseLeave event the chart renders the labels again. In order to render correctly i need to reinstantiate my IRenderLabel implementation.

Thanks

Parents
  • 17605
    posted

    Hi,

    Yes, the chart is re-rendering on mouse MouseLeave event. You can disable this with disabling the tooltips (make sure you have the latest service release applied):

    this.UltraChart1.Tooltips.Display = TooltipDisplay.Never;

    I’m not sure why you need to re-instantiate the IRenderLabel implementation. If you are set your code in the:

    private void Form1_Load(object sender, EventArgs e)

    {

    }

    The code will be called just once.

Reply Children
No Data