tel8618217223380 / jsflot

Automatically exported from code.google.com/p/jsflot
1 stars 1 forks source link

Time mode with %b timeformat print JAN same month for all x axis value #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. change the mode for the jsflot to Time
2. set the time format %b
3.

What is the expected output? What do you see instead?
Want to see month ranging from JAN to DEC, But it display same JAN first month 
for all the value,

What version of the product are you using? On what operating system?
richfaces 3.3 Final and windows

Please provide any additional information below.
<h:form id="graphForm" width="100%" height="100%"
                style="background-color:#ff0000;">
                <jsflot:flotChart id="manualBarChart"
        actionListener="#{chartMbean.chartActionListener}"
        chartDraggable="#{chartMbean.chartData.chartDraggable}"
        chartClickable="#{chartMbean.chartData.chartClickable}"
        chartZoomable="#{chartMbean.chartData.chartZoomable}"
        reRender="clickedPanel" 
        showLines="false"
        fillLines="false"
        showDataPoints="#{chartMbean.chartData.showDataPoints}"
        legendColumns="#{chartMbean.chartData.legendColumns}"
        legendOpacity="#{chartMbean.chartData.legendOpacity}"
        legendPosition="#{chartMbean.chartData.legendPosition}"
        legendColor="#{chartMbean.chartData.legendColor}"
        height="#{chartMbean.chartData.height}"
        width="#{chartMbean.chartData.width}"
        showTooltip="#{chartMbean.chartData.showTooltip}"
        tooltipPosition="#{chartMbean.chartData.tooltipPosition}"
        tooltipFollowMouse="#{chartMbean.chartData.tooltipFollowMouse}"
        mode="Time"
        timeFormat="%d/%m/%y"
        title="#{chartMbean.chartData.title}"
        subtitle="#{chartMbean.chartData.subtitle}" 
        chartType="bar"
        showXaxisLabels="#{chartMbean.chartData.showXaxisLabels}"
        xaxisTitle="#{chartMbean.chartData.xaxisTitle}"
        xaxisTitleRotation="#{chartMbean.chartData.xaxisTitleRotation}"
        xaxisLabelRotation="#{chartMbean.chartData.xaxisLabelRotation}"
        showYaxisLabels="#{chartMbean.chartData.showYaxisLabels}"
        yaxisTitle="#{chartMbean.chartData.yaxisTitle}"
        yaxisTitleRotation="#{chartMbean.chartData.yaxisTitleRotation}"
        yaxisLabelRotation="#{chartMbean.chartData.yaxisLabelRotation}"
        numberOfXAxisTicks="#{chartMbean.chartData.numberOfXAxisTicks}"
        xaxisMinValue="#{chartMbean.chartData.xaxisMinValue}"
        xaxisMaxValue="#{chartMbean.chartData.xaxisMaxValue}"
        numberOfYAxisTicks="#{chartMbean.chartData.numberOfYAxisTicks}"
        yaxisMinValue="0"
        markers="#{chartMbean.chartData.markers}"
        markerPosition="#{chartMbean.chartData.markerPosition}"
        yaxisMaxValue="20"
        crosshair="#{chartMbean.chartData.crosshair}">

        <jsflot:XYDataList color="#4ae815" fillLines="false" label="Label 1!"
            markerPosition="ct" markers="true" showDataPoints="true"
            showLines="false">
            <jsflot:XYDataPoint x="1" y="4" pointLabel="p1l1"></jsflot:XYDataPoint>
            <jsflot:XYDataPoint x="2" y="6" pointLabel="p1l2"></jsflot:XYDataPoint>
            <jsflot:XYDataPoint x="3" y="8" pointLabel="p1l3"></jsflot:XYDataPoint>
            <jsflot:XYDataPoint x="4" y="10" pointLabel="p1l4"></jsflot:XYDataPoint>
            <jsflot:XYDataPoint x="5" y="12" pointLabel="p1l5"></jsflot:XYDataPoint>
            <jsflot:XYDataPoint x="6" y="14" pointLabel="p1l6"></jsflot:XYDataPoint>
        </jsflot:XYDataList>

    </jsflot:flotChart>

Original issue reported on code.google.com by atmoh...@gmail.com on 6 Sep 2013 at 6:08