Hi,
I have a composite chart with a barchart in it. I also have custom layers that implement the ILayer interface. When I call the UltraChart..InvalidateLayers() function my layers are not rerendered when the mouse is hovering the bars of the barchart. Only when I move the mouse to a place in the chart where there are no bars, my custom layers render.
How can I change this? Is there some function I need to call or some properties I have to assign to the barchart??
Thanks,
MIcha
It is working when I disable tooltips for the chart!?
But how can I get it to work with tooltips enabled??
The way I solved it for now is to disable tooltips, rerender the layer and then enable tooltips again, but it is kind of annoying that the tooltips now flicker all the time, since I do it in the MouseMove eventhandler:
ultraChart1.Tooltips.Display = TooltipDisplay.Never;ultraChart1.InvalidateLayers();ultraChart1.Tooltips.Display = TooltipDisplay.MouseMove;
Any ideas on how to really solve this??
Hello,
Because of the complexity of the UltraChart could you please post a simple sample in order to investigate this further for you, or please let us know all of the properties of the UltraChart, that you are setting through the designer and also through the code behind.
I am waiting for your details.
I attached a sample project where the problem occurs with the InvalidateLayers call in the MouseMove event of the chart.
Thank you for the provided sample. Could you please instead uc_chart.Invalidate() call (this.uc_chart as IChartComponent).Invalidate(CacheLevel.LayerLevelCache). Please let me know if this is what you are looking for or i am missing something.
Please let me know if you have any further questions.
Yes, that does the trick. Thank you!