You are correct, I am only selecting the hour that the tick occured, which
is every minute. I don't want to display the whole time that the tick
occured only the hour in which it occured. Is there some other way around
this? Can I set a min/max value for relative points?
If I use the Dataset to populate the SetData Method, will that change this
behaviour?
Thanks
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
your array data is suspect. it must return minutes not hours for it to
plot
correctly. I suspect the array contains hours values
--
Regards,
Alvin Bruney
[ASP.NET MVP
http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Kyle" <kyle> wrote in message
Here is the code that generates my current spot charts. The only
section
that is not present is where I populate the arrays (aX,aY) with the
data
from a dataset.
<code>
Dim chConstants
'New ChartSpace
ChartSpace1 = New OWC.ChartSpace
chConstants = ChartSpace1.Constants
'New Chart in Space
Chart1 = ChartSpace1.Charts.Add(0)
Chart1_Series1 = Chart1.seriesCollection.Add(0)
Chart1_Series1.Type = chConstants.chChartTypeLine
'Populate the X and Y values from array:
Chart1_Series1.SetData(OWC.ChartDimensionsEnum.chDimCategories,
OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aY)
Chart1_Series1.SetData(OWC.ChartDimensionsEnum.chDimValues,
OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aX)
' Format ChartSpace Elements
ChartSpace1.Border.Weight = 0
ChartSpace1.Interior.Color = "lightGray"
With ChartSpace1.Charts(0)
.PlotArea.Interior.SetTextured(chConstants.chTextureParchment,
chConstants.chTile)
.Border.Weight = 0
End With
With ChartSpace1.Charts(0).Axes(0) 'Hour Axes
.MinorTickMarks = OWC.ChartTickMarkEnum.chTickMarkInside
.MajorTickMarks = OWC.ChartTickMarkEnum.chTickMarkInside
.TickLabelSpacing = 4
End With
With ChartSpace1.Charts(0).Axes(1) 'Price Axes
.MajorTickMarks = OWC.ChartTickMarkEnum.chTickMarkInside
.MajorTickMarks = OWC.ChartTickMarkEnum.chTickMarkInside
End With
Response.BinaryWrite(ChartSpace1.GetPicture("gif", ImageWidth,
ImageHeight))
Response.End()
</code>
Try to post your code.
er.