Issue #344 open

March duplicated for February

Anonymous created an issue

So we are graphing data based around dates on the x-axis. When we try to view february and march, march displays for februaray. Could this be happening because the way dates are calculated does not take into account that february only has 28/29 days? Did I do something wrong in the code below that would cause march to replace february?

$(document).ready(function() {
$.jqplot('chart1', #dataFull#, { legend: {show: true, location: 'nw'}, series: [ {label: 'Baseline', markerOptions:{style:'square', size:3},lineWidth:1,color:'##0000ff',showLine: true,showMarker: true}, {label: 'Cur_RFM', markerOptions:{style:'filledSquare ', size:5},lineWidth:1,color:'##800080',showLine: #displayCRFM#,showMarker: #displayCRFM#}, {label: 'Actual_RFM', markerOptions:{style:'diamond', size:5},lineWidth:1,color:'##ff00ff',showLine: #displayARFM#,showMarker: #displayARFM#}, {label: 'SCHD_submit', markerOptions:{style:'circle', size:5},lineWidth:1,color:'##ff0000',showLine: #displaySchdPRISub#,showMarker: #displaySchdPRISub#},
{label: 'Preliminary_Submitted', markerOptions:{style:'snow', size:5},lineWidth:1,color:'##00ffff',showLine: #displayPRISub#,showMarker: #displayPRISub#}, {label: 'Preliminary_Approved', markerOptions:{style:'filledCircle', size:5},lineWidth:1,color:'##804000',showLine: #displayPRIApp#,showMarker: #displayPRIApp#}, {label: 'Final_Approved', markerOptions:{style:'triangle ', size:5},lineWidth:1,color:'##008000',showLine: #displayFINApp#,showMarker: #displayFINApp#}, //these are points not lines {label: 'CAD', markerOptions:{style:'filledDiamond ', size:12},lineWidth:1,color:'##008000'}, {label: 'EDD', markerOptions:{style:'filledDiamond ', size:12},lineWidth:1,color:'##0080c0'}, {label: 'BT', markerOptions:{style:'filledDiamond ', size:12},lineWidth:1,color:'##ff8000'} ], axes:{ xaxis:{renderer:$.jqplot.DateAxisRenderer, rendererOptions:{tickRenderer:$.jqplot.CanvasAxisTickRenderer}, tickOptions:{formatString:'%b - %y',angle: -90, fontSize: '8pt'}, min:'#date1#', tickInterval:'1 month' }, yaxis: { ticks:[0,50,100,150,200,250], tickOptions:{fontSize: '8pt'} }
}
});
});

Comments (4)

  1. Log in to comment