Tooltips for datetime values on y-axis

Aug 29, 2012 at 2:58 PM

Hi,

I really like this project but I've run into an issue I'm having trouble with.

I have a chart that uses datetime values on the x-axis, and the tooltips display the date correctly. I tried to create a second chart with the axis reversed and the tooltip date displays the tick value for the date. Is there a way to get around this? I'd like to have both charts in my application. Below is the code for both charts. Thanks for your help.

Working code with x-axis date

chart.SetYAxis(new YAxis
{
    Type = AxisTypes.Linear,
    Title = new YAxisTitle
    {
        Margin = 5,
        Text = "Likelihood",
        Align = AxisTitleAligns.Middle
    }
});
chart.SetXAxis(new XAxis
{
    Type = AxisTypes.Datetime,
    Title = new XAxisTitle
    {
        Text = "Date",
        Margin = 40,
        Offset = 20,
        Align = AxisTitleAligns.Middle,
        Style = "fontSize: 12"
    }
});

code for y-axis date that displays tick value in the tooltip

 

chart.SetXAxis(new XAxis
{
    Type = AxisTypes.Linear,
    Title = new XAxisTitle
    {
        Margin = 5,
        Text = "Likelihood",
        Align = AxisTitleAligns.Middle
    }
});
chart.SetYAxis(new YAxis
{
    Type = AxisTypes.Datetime,
    Title = new YAxisTitle
    {
        Text = "Date",
        Margin = 40,
        Offset = 20,
        Align = AxisTitleAligns.Middle,
        Style = "fontSize: 12"
    }
});

 

 

Aug 31, 2012 at 12:48 PM

Set yAxis property is 1 in the Y axis series like below

chart.SetYAxis(new YAxis
{
    Type = AxisTypes.Datetime,
    Title = new YAxisTitle
    {
        Text = "Date",
        Margin = 40,
        Offset = 20,
        Align = AxisTitleAligns.Middle,
        Style = "fontSize: 12"
  yAxis = 1

 } });