Jump to content
Software FX Community

VekiPeki

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by VekiPeki

  1. Hi! Why don't you just skip the values, instead of making them Hidden? I.e. change this: chartObj.XValue[2,0] = 2/20/1998chartObj.Value[2,0] = 6.22chartObj.XValue[2,1] = 6/7/2000chartObj.Value[2,1] = Chart.HiddenchartObj.XValue[2,2] = 10/12/2001chartObj.Value[2,2] = 7.81chartObj.XValue[2,3] = 5/6/2003chartObj.Value[2,3] = Chart.HiddenchartObj.XValue[2,4] = 5/7/2003chartObj.Value[2,4] = 7.14chartObj.XValue[2,5] = 9/30/2007chartObj.Value[2,5] = 7.86 to this: chartObj.XValue[2,0] = 2/20/1998chartObj.Value[2,0] = 6.22chartObj.XValue[2,1] = 10/12/2001chartObj.Value[2,1] = 7.81chartObj.XValue[2,2] = 5/7/2003chartObj.Value[2,2] = 7.14chartObj.XValue[2,3] = 9/30/2007chartObj.Value[2,3] = 7.86 If you are not using category x-axis, then it should just connect your (x,y)-pairs, without caring about hidden points (if this is what you inteded - I am not sure). If you have an option to use Bar gallery, you may try it also, it renders hidden points differently. Veki
  2. Hello! I have a problem drawing area charts using ChartFX Client Server 6.2. The problem is that the area charts are incorrectly rendered when chart is zoomed and scrolled. I have provided the code, which is basically the simplest area sample from the documentation (Year as category axis, and Low/High values for the range band): Public Class MyForm Dim rs As ADODB.Recordset Private Sub initdb() Dim myConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=C:\Program Files\Chart FX Client Server 6.2\" _ & "Help & Samples\ChartfxSamples.mdb;" Dim mySelectQuery = "SELECT Year, Low, High from SampleCombination1" Dim myConnection As New ADODB.Connection myConnection.Open(myConnectionString) rs = myConnection.Execute(mySelectQuery) End Sub Private Sub plot() ' Define DataTypes Chart1.DataType.Item(0) = Cfx62ClientServer.DataType.DataType_Label Chart1.DataType.Item(1) = Cfx62ClientServer.DataType.DataType_IniValue Chart1.DataType.Item(2) = Cfx62ClientServer.DataType.DataType_Value ' Define Series Chart1.Series(0).Gallery = Cfx62ClientServer.Gallery.Gallery_Area Chart1.Series(0).Color = &HFF ' Bind to rs Chart1.DataSource = rs End Sub Private Sub MyForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles MyBase.Load initdb() plot() End SubEnd Class The following picture shows the results: Now, when I zoom in on first two points (1987-1988), at first I get the results as expected: But then if I use the vertcal scrollbar to move the chart vertically, I have strange results. Following picture shows the same area as above, but scrolled down: It seems like the area is not rendered correctly, and this is clearly different from previous picture, so you can imagine how the chart looks like when multiple series are displayed and scrolled. I tried a lot of googling to find similar bug reports, but was unable to find the answer, so I hope I will find someone here who will be able to help. I am using ChartFX Client Server 6.2 with service pack (ChartFx.ClientServer.Core.dll 6.2.2532.19852) on Windows Vista Business. Thanks a lot! Best regards. Veki P.s. I have included the sample app as well.
×
×
  • Create New...