[ 3 posts ]

B. Estrade

  • Username: estrabd
  • Joined: Wed Sep 07, 2011 12:28 pm
  • Posts: 49
  • Location: Houston, Texas
  • Twitter: estrabd
  • GitHub: estrabd
  • Gists: estrabd
  • IRC: estrabd
  • Offline
  • Profile

Issue using TimeAxis with MarkerSeries data set of size 1

Post Posted: Wed Sep 21, 2011 9:28 am
+0-
When using the TimeAxis to show a marker series using a data set with 1 data point, all major ticks in the x-axis are both the same label repeated AND the single marker doesn't show up.

This actually occurs when all datapoints in the marker series have the same date/time.

I have gotten around this issue by using CategoryAxis for the time being, but is there a way to handle this?

Thank you,
Brett

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Issue using TimeAxis with MarkerSeries data set of size

Post Posted: Wed Sep 21, 2011 11:41 am
+1-
That's definitely a bug. I can file a ticket and post back with the link. In the interim, the easiest workaround would be to specify a minimum and maximum for your time axis. The code below shows an example of the workaround.
Code:
var myDataValues = [
    {date:"4/1/2011", expenses:4700}
];

var myAxes = {
    dateRange:{
        type:"time",
        keys:["date"],
        minimum: new Date("1/1/2011"),
        maximum: new Date("12/1/2011")
    }
};
var myChart = new Y.Chart({
                    categoryKey: "date",
                    dataProvider:myDataValues,
                    axes:myAxes,
                    render:"#mychart"
                });


Thanks,
Tripp

Tripp Bridges

YUI Developer

  • Username: tripp
  • Joined: Wed Jan 07, 2009 1:54 pm
  • Posts: 435
  • GitHub: tripp
  • Gists: tripp
  • YUI Developer
  • Offline
  • Profile

Re: Issue using TimeAxis with MarkerSeries data set of size

Post Posted: Thu Sep 22, 2011 1:21 am
+0-
A ticket has been filed for this issue:
http://yuilibrary.com/projects/yui3/ticket/2531134

Thanks,
Tripp
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum