0

jqplot を使用して棒グラフをプロットしようとしましたが、グラフの最初の棒について問題が見つかりました。表示ポイント ラベルではありません。この問題を解決するには?助けと提案をありがとう。

ロケオここに画像の説明を入力

すみません、忘れました。

<script type="text/javascript">
$(document).ready(function() {
        var s1 = [32100,0,0,990000,0,0,0,0,0,0,0,0];
        var s2 = [36000,0,0,1800,0,4980,0,0,0,0,0,0];
        var s3 = [0,0,0,0,0,0,0,0,0,0,0,0];
        var ticks = ['1 2013','2 2013','3 2013','4 2013','5 2013','6 2013','7 2013','8 2013','9 2013','10 2013','11 2013','12 2013'];
            $('#show-graph').css('height', '699px').jqplot([s1, s2, s3], {
                title:'รายจ่าย',
                seriesDefaults:{
                    renderer:$.jqplot.BarRenderer,
                    rendererOptions: {
                        barWidth: 20,
                        barMargin: 10
                    },
                    pointLabels: {
                        show: true, 
                        formatString: "%#.2f", 
                        hideZeros: true
                    }
                },
                axes:{
                    xaxis:{
                        renderer: $.jqplot.CategoryAxisRenderer,
                        tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
                        tickOptions: {
                           fontFamily: 'Georgia',
                           fontSize: '10pt',
                           angle: -30,
                           labelPosition: 'middle'
                        },
                        ticks: ticks
                    },
                    yaxis: {
                        min: 0
                    }
                },
                legend: {
                    show: true,
                    location: 'ne',
                    placement: 'insideGrid'
                },
                series:[
                    {label: 'beverage'},
                    {label: 'equipment'},
                    {label: 'another'}
                ]
            });
});

4

1 に答える 1