1

以下のコードを使用してjqPlotのY軸を右側に表示していますが、左側にしか表示されていません:

$.jqplot.config.enablePlugins = true;

        var test2 = readXML(posi);

        plot2 = $.jqplot('chart2', [test2], {
            series: [{ renderer: $.jqplot.OHLCRenderer, rendererOptions: { candleStick: true, wickColor: '282828',
                upBodyColor: '00C000', fillUpBody: true, downBodyColor: 'F81700',
                fillDownBody: true, lineWidth: 1.5, tickLength: true, background: 'C8C8C6',
                closeColor: '282828', openColor: '282828'
            }
            }, { xaxis: 'x2axis', yaxis: 'y2axis'}],
            axesDefaults: {
                tickRenderer: $.jqplot.CanvasAxisTickRenderer,
                tickOptions: {
                    angle: 30
                }
            },
            axes: {
                xaxis: {
                    renderer: $.jqplot.CategoryAxisRenderer
                },
                x2axis: {
                    renderer: $.jqplot.CategoryAxisRenderer
                },
                yaxis: {
                    autoscale: true
                },
                y2axis: {
                    autoscale: true
                }
            }
        });

私の間違いがどこにあるのか教えてください。

参照から上記のコードを取得しました: http://www.jqplot.com/tests/canvasAxisTests.phpこの3番目の例では、右側に値が表示されています。jqPlotのローソク足チャートを使用しています。

ありがとう

4

1 に答える 1

0

jqplot に付属の CSS ファイルを見てください。jqplot-yaxis の設定を定義するため、それを使用して目的の位置を設定できます。

于 2010-12-02T17:33:54.073 に答える