Thread Rating:
  • 348 Vote(s) - 2.81 Average
  • 1
  • 2
  • 3
  • 4
  • 5
【グラフ】右軸のグリッド線の表示について
08-29-2011, 09:51 AM,
#1
【グラフ】右軸のグリッド線の表示について
こんにちは。質問です!

グラフ内に右軸のグリッド線を表示させたいのですが、
下記のようにright-axis-grid-lines? = trueにすると、
グラフの外(右側)に線が表示されます。

これをグラフ内(左側)に表示させることはできるのでしょうか??


よろしくお願いします!

Code:
{import * from CURL.GUI.CHARTS}
{let records:RecordSet =
    {RecordSet
        {RecordFields
            {RecordField "KPH", caption = "Kilometers/hour", domain = int},
            {RecordField "TD", caption = "Thinking distance", domain = int},
            {RecordField "BD", caption = "Braking distance", domain = int},
            {RecordField "OD", caption = "Overall distance", domain = int}
        },
        {RecordData KPH = 32, TD = 6, BD = 6, OD = 12},
        {RecordData KPH = 48, TD = 9, BD = 14, OD = 23},
        {RecordData KPH = 64, TD = 12, BD = 24, OD = 36},
        {RecordData KPH = 80, TD = 15, BD = 38, OD = 53},
        {RecordData KPH = 97, TD = 18, BD = 55, OD = 73},
        {RecordData KPH = 113, TD = 21, BD = 75, OD = 96}
    }
}
{let chart:LayeredChart =
    {LayeredChart
        width = 15cm,
        height = 6cm,
        plot-area = {LayeredPlotArea
                        right-axis-grid-lines? = true
                    },
        left-axis =
            {ChartAxis
                {ChartDataSeries records, "OD"},
                axis-label = "OD"
            },
        right-axis =
            {ChartAxis
                {ChartDataSeries records, "BD"},
                axis-label = "BD"
            },
        bottom-axis =
            {ChartAxis
                {ChartDataSeries records, "KPH"},
                force-zero? = false
            },
        {LineLayer
            {ChartDataSeries records, "OD"},
            {ChartDataSeries records, "BD"},
            {ChartDataSeries records, "TD"}
        }
    }
}
{VBox
    {RecordGrid
        height = 4cm,
        width = 13cm,
        record-source = records
    },
    chart
}


Messages In This Thread
【グラフ】右軸のグリッド線の表示について - by thiguchi - 08-29-2011, 09:51 AM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('250')