SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
A little recap: I’m building a Trading Chart Application that displays historical and live market data. I’m using SciCharts v1.7.1 (there’s a problem that I have already reported with v2 that prevents from using it for now).
There are a few issues/questions that I have about SciCharts:
When displaying few bars on the chart (look at attachments ‘SciChart-XStudy.png’ & ‘SciChart-XStudy2.png’) there is some overlapping among the candlesticks. At the beginning I was using CategoryDateTimeAxis but it does not work for me because traders at my company need the empty spaces when there is no activity on the market (CategoryDateTimeAxis skips does spaces), so I’m using DateTimeAxis now. I thought about using Gaps but this is only supported for Line and Column charts. Finally I tried playing with DataPointWidth but I could not get the results that I wanted. What suggestions do you have about this? Is this a known issue or am I setting up something incorrectly? In the screenshots I attached you can compare SciCharts (left) with XStudy (right), which is the application I’m trying to replicate.
As you can appreciate in attachment ‘Volume_No_Labels.png’ the MayorGridLines and labels are not being drawn for my Volume Chart even though I have it set to TRUE. Is there some way to set the scale manually or is it done automatically? I could probably do some calculation on my side to help with this, but I have no idea how to set up the scale for minor and mayor grid lines. Any suggestion?
Appreciate the help, thanks!
You should use CateforyDateTimeAxis for this purpose, for it treats all points to be equidistant despite their X data value. To show a gap, you just need to append double.NaN values on that dates. Also take a look at this post dedicated to CategoryDateTimeAxis usage, you may find useful info there.
Regarding the second, the MajorGridLines aren’t show, because your visible range seems to match the first line occurrence. There are properties which controls interval between grid lines, such as MaxAutoTicks, AutoTicks, MinorsPerMajor, MinorDelta, MajorDelta. To set up your own interval, you need to set AutoTicks to “False” and apply certain value to MajorDelta.
Hope this helps! Don’t hesitate to ask if you have any more questions!
OhlcDataSeries<DateTime, int>as my type of DataSeries, but I had to switch to doubles (or floats) to use your suggestion. My question is: is there a way of achieving this behaviour using int? What do I have to append to the DataSeries to achieve this?2. Am I incurring into a performance penalty for using double instead of int? Is float a viable alternative to double?On a regular basis, the charting application that I am building usually has 20+ live charts opened at the same time, so performance is a big priority for me.Look forward to your input on this subject.Thanks,Diego
Please login first to submit.