Profile Picture

A few questions

Posted By Roman S 13 Years Ago
Author
Message
Roman S
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 2, Visits: 1

Hello,

I am looking for component to draw stock chart. I saw your demo and have a few questions:

1. In MS Chart I can use the data point index in the series collection to position candles along the axis X to remove gaps between candles and have DateTime labels on axis X.

For example my code is:

series1.XValueType = ChartValueTypes.DateTime;

series1.YValuesPerPoint = 4;

series1.XValueIndexed = true;

Do you have similar option in Nevron Charts?

2. When I used zoom/scroll in your demo the most right candle always appeared with only half of its width. Can I add some space between most right candle and chart border so that this candle could be drawn completly on chart?

3. Do you have an option to have variable width of candles depending on amount of candles on chart and chart width? In the demo Candles and volume bars are overlaping each other.



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 2 days ago @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi Roman,

Regarding question 1 - In our control you can simply tell the series to use the X values:

    someSeries.UseXValues = true;

and then feed X coordinated in date time or other number:

    someSeries.XValues.Add(DateTime.Now.ToOADate());

If you use date time you should also switch the axis scale to date/time (in order to get some meaningful scale). For exemple check out the All Examples\Axes\Scaling\Date Time Scale

Regarding questions 2 and 3 - can you please point out which examples are you refering to?

Regarding question 3 - with the CandleWidth property you can set the candle width relatively to the chart size or in absolute units like points or pixels. Currently the candle width cannot be set dynamically based on the amount of visible candles.

 



Best Regards,
Nevron Support Team



Roman S
Posted 13 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 2, Visits: 1

You can see this in example "Date Time Work Calendar". Try to zoom in and scroll to the right - and you'll see only half of the most right candle on the chart.

About my first question - if I use candle.UseXValues = true; and bind my data with DateTime value for axis X then I get gaps on the chart between candles if there was no data.

For example I have hourly data from 10:00 till 18:00 every day so I have gaps on a chart between 18:00 (where I have last candle of the day) till 10:00 (where I have first candle of the next day).

I have tried UseXValues = false; in this case chart looks OK, but I have data point index as labels on axis X instead of datetime.

Also I have tried NPriceScaleConfigurator for axis X but it seems that it does not work with stock chart.

So my question still is do you have solution to have DateTime labels on axis X but without any gaps in series as I described above?

Best regards,

Roman





Similar Topics


Reading This Topic