Hi,
I want to get series name and value on the clicked element in the column graph.
For it I handle MouseDown event and call HitTest function. But it returns null reference in his SelectedObject property
It only works properly in the 3d Mode .
What is wrong?
i saw this submitted as a bug (BR35669) and fixed it today. your issue should be resolved in an upcoming hotfix. you should be able to work around the problem by setting UseDataTemplate = false on your series objects.
why doesn't HitTest() behave the same in 2D as it does in 3D? If I have a stacked bar or stacked column chart, I should be able to HitTest() a click over a column or bar in 2D or 3D and get the same behavior. Yet it doesn't.
I am attaching a simple example. You will need to re-add references to your chart dll's to build the application. the application displays a simple stacked column chart that handles double clicks with a HitTest() call. You can switch between 2D and 3D using a dropdown menu. Without using Markers in the 2D chart, how can I get HitTest to return the same object when performed in 2D or 3D?
using the DataPointTemplate class should suffice. and about removing marker labels, i guess setting the format to " " is your best option.
But I need the marker to use the data template with a scatter line chart's data points... don't I? Or can I use a data point template with a scatter line chart. The documentation is a little confusing on the subject of data templates with scatter line charts. I need a data template because my points are buttons.
From About DataPointTemplates
You can target the following DataTypes in your DataTemplates:
There is nothing there about scatterline.
removing the Marker from the Series might be a better solution...