Hello Christopher,
thank you for your quick reply. I didn't notice that I had old version of TeeChart in that project (from 2013) and html was not working in that version - it even didn't have TextOut method with five parameters.
Now I have problem with auto width. If I have normal and bold text on one line, it calculates wrong width for the annotation:

Width is correct if I don't use bold:

I also notice that the problem starts with enough long normal text - if I wrote only "Long normal: Long bold text" it works as expected.

I set ClipText = false to see the whole text.
When I changing to the newest TeeChart version I notice that if I create Theme without Chart in constructor and then call Apply with my Chart it throws NullReferenceException, but it worked in the old 2013 version. When I create Theme with new Chart() in constructor and then call Apply with my Chart it works as expected.
Code: Select all
new Steema.TeeChart.Themes.TeeChartTheme(new Chart()).Apply(chart); //this works
new Steema.TeeChart.Themes.TeeChartTheme().Apply(chart); //this worked only in older version and now throws NullReferenceException
Is this behaviour correct?
Thank you
Martin