こんにちは。質問です!
グラフ内に右軸のグリッド線を表示させたいのですが、
下記のように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
}