.NET Framework Bookmark and Share   
 index > Chart Controls for .NET Framework > stock Intraday chart on multiple day
 

stock Intraday chart on multiple day

Hi,
I've the following problem, I'm using that control for stock multiple intraday chart, the trading value on each day is between 9 AM to 6 PM, if I use Charting.ChartValueType.DateTime on the chart appear also the space between the two different trading day.
I would like to draw only the data in the trading time.
How can I do this?
Sam
Samf
For better explain my problem I attach a link of an image of the problem...


this is a chart of 5 days of time and sales value, i would like to remove the un used space between the trading day, I can do this?
I can't use an integer Charting.ChartValueType because some stock have few value during the trading day, so I need to put it in the correct datetime place...
regards
Sam

Sam
Samf

if series are indexed then the two dates can be overlooked.

Chart1.Series(0).IsXValueIndexed =

True


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
KishorePV
thank you for the reply, could be ok, but there are a problem for the stock that have few quotes during the day and not at regular time interval, in that case with IsXValueIndexed set to true all the data point appear at the same distance.
another think there a method for writing the label only when the day change (only one date for day)
this is the image sample
Ciao
Sam

Sam
Samf

try using

Chart1.ChartAreas(

"ChartArea1").AxisX.IntervalType = DateTimeIntervalType.Days


Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
KishorePV
I'm just using Me.Chart_Component.ChartAreas("Price").AxisX.IntervalType = DateTimeIntervalType.Days
mmm i think that I could work on an integer index, for give the right space on the chart, but there are e method for set manually the label on AxisX?


Sam
Samf
You can define custom axis labels using Axis.CustomLabels collection.

Alex.
http://blogs.msdn.com/alexgor
Alex Gorev

You can use google to search for other answers

Custom Search

More Threads

• asp.net Chart Controls on a user control in MVC
• Financial Formula
• MOSS 2007 Blank Chart Image
• .Net chart change y-axis label from milliseconds to seconds
• Can you anchor the background image for zooming
• how to set the chart control's Title Height or width?
• How Can I get a series's color
• Y Data Not Visible in ASP.NET Chart Control Properties inside VS 2008
• The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) Word interop on RE-open
• Superscript in datapoint label?