|
make visible second x axis chart |
Posted by PeterMaz on Apr-28-2024 20:53 |
|
How can I display the x-axis according to the graph (GrafPers)?
Dim c As FinanceChart = New FinanceChart(790)
Dim extraDays As Integer = 0
c.setData(DateTime, High, Low, Open, Close, Volume, extraDays)
Dim GrafCandle As XYChart = c.addMainChart(240)
GrafCandle.setPlotArea(30, 30, 700, 200)
c.addCandleStick(&H66FF66, &HFF6666)
Dim ChartPers As XYChart = New XYChart(700, 200, Chart.Transparent)
GrafPers.addLineLayer(PersData, &H8000, "Load")
Dim m As MultiChart = New MultiChart(790, 340)
m.addChart(0, 0, GrafBattl)
m.addChart(0, 0, GrafCandle)
viewer.Chart = m |
Re: make visible second x axis chart |
Posted by Peter Kwan on Apr-29-2024 23:07 |
|
Hi PeterMaz,
If you want to draw a FinanceChart with candlesticks and with a custom indicator PersData, the code should be like:
Dim c As FinanceChart = New FinanceChart(790)
Dim extraDays As Integer = 0
c.setData(DateTime, High, Low, Open, Close, Volume, extraDays)
c.addMainChart(240)
c.addCandleStick(&H66FF66, &HFF6666)
c.addLineIndicator(240, PersData, &H8000, "Load")
viewer.Chart = c
Best Regards
Peter Kwan |
|