Jump to content
Software FX Community

sudidela

Members
  • Posts

    30
  • Joined

  • Last visited

sudidela's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a data for one year. If i pass the data, chart plots fine. If i zoom the chart continuously, at some point of time, X-axis scroll bar slider is coming out of Scroll bar... This happens only when the data exists for longer duration like for 1 year. Please help me out of this problem......... Thanks
  2. Thank you rocioZ.... Is it the same for Y-axis as well.? I mean is it that Step value should be greater than Minor step value for Y -axis as well?
  3. After zooming the chart, we are capturing max and min values of Y axis of chart. These max and min values are used for chart.AxisY.SetScrollView(min,max); After this, if we check the Y axis step, the step is coming as negative value. Can the Axis(Y or X axis) step can be a negative value? Thanks...
  4. In a windows application i am working on, i have implemented a custom zoom to capture the exact area selected by the user for zoom. after zoom is done, some times AxisX scroll view is not refreshing and so if we move scroll bar, application is crashing...... So to find the root cause of this, at one point of time i found that crash is happening when if ((Chart.AxisX.ScrollSize - Chart.AxisX.ScrollPosition) == 1 ) then application is crashing. so if the above condition executes, i am writing the below code Chart.AxisX.ZoomOff(); Chart.AxisX.Step = PreviousAxisXStep; // PreviousAxisXStep is stored before zoom is done cfxBaseChart.Refresh(); Then AxisX is getting refreshed and there will not appear scroll bar for X-axis.. If data points are less, it's ok. Flickering will not be there.... If large no of data points are there, then flickering is involved......which is very bad experience for the user.... What does this Chart.AxisX.ScrollSize and Chart.AxisX.ScrollPosition literally mean?????? Please help me out of this problem....... Thanks in Advance........
  5. How can i provide intelligence of displaying Y axis labels with the decimal precision based on the zoom. If the data passed to the Y- axis of the chart is like 3.5, 3.8, 4.2, 12.1, 18.6, 22.448, 44.798633, 12.333,15.89475698236,...... Initially when the plot is plotted, there should not be any decimal precision displayed. The Yaxis should display the labels like 1,2,3,4,.... till maximum value passed to the chart.. As the user zoom certain area of the chart, decimal precision should increase if there is any data.......
  6. Even though Try Catch bolcks are there, We could not able to catch the Exceptions of ChartFX as it is not throwing.....Instead Application is getting crashed..... We could able to handle the other Exceptions of our Application but could not able to handle the Exceptions from ChartFX..........
  7. How can i handle the Exceptions thrown by ChartFx instead of the Application getting crashed..............
  8. Please find the Attached Excel sheet which has the information of the Exception.
  9. Here the main concern is how to catch the Exceptions thrown by ChartFx... As we know ChartFx doesn't handle the value of Nan. When Nan values are passed to ChartFX, application will crash!!!!!!!!. So in this scenario as a developer i should able to handle the Exception instead of application getting crashed.
  10. When i have to use Chart.Refresh(); We have implemented Custom Zoom where in we take the coordinates of the area that is selected for Zoom and create the rectangle using the coordinates. The created rectangle is sent as a argument for Chart.ZoomToWindow(Rectangle.Left, Rectangle.Top,Rectangle.Right, Rectangle.Bottom); double dblmin = 0; double dblMax = 0;cfxBaseChart.AxisX.GetScrollView(out dblmin, out dblMax); DateTime dtStartDate;DateTime dtEndDate; dtStartDate = DateTime.FromOADate(dblmin);dtEndDate = DateTime.FromOADate(dblMax); TimeSpan ts = dtEndDate.Subtract(dtStartDate);Chart.AxisX.Step = (1 * (int)ts.TotalHours) / (24.0 * 6.0); Chart.AxisX.Zoom(dblmin, dblMax); foreach (AxisY axisY in cfxBaseChart.AxesY) { double dblmin = 0;double dblMax = 0;axisY.GetScrollView(out dblmin, out dblMax); axisY.Step = (dblMax - dblmin) / 10; axisY.Zoom(dblmin, dblMax); } After that Chart.Refresh() is used.. But After zoom, scales are not getting refreshed. And because of this, if we scroll the axis at that instant, application will crash.
  11. I am working on a windows application where in we use ChartFx for plotting of Graphs. If we do any mistake like setting Min and max values for Chart axes and because of this the calculation of Chart internal calculations will throw an Exception. In my application even though i keep try and catch block to handle the exceptions, i can not able to handle the exception that are from Chart and because of that total application gets crashed.. Any help for handling the exceptions thrown by ChartFX?
  12. so ,do you mean to say that I can draw some shapes on Chart using GDI+.?? How Can I get Graphics object of chart?? ChartFXWPFTest11.zip
  13. What can we do in the Post Paint Event of Chart. Can we set Y-axes max and min values based on some condition in the post paint event if i have plotted multiple Y-axes on the chart. What kind of settings to the chart can be done in the PostPaint Event of Chart? ChartFXCustomAxisLabels.zip
  14. Hi We are working on Windows application where in we need to capture the data from device and send it to chart for plotting. X-axis values will have the DateTime values and Y-axis will have the double values. If we pass the double values to Y-axis like 1.973962E-15, 2.508606E+15, 46.15, 4.1685E-15......, then application is getting crashed. I am attaching the snapshot of the Exception details.
  15. Hi, As the default zoom provided by the ChartFx doesn't zoom exactly from the location where the left mouse button is clicked to the location where the mouse button is released, we would like to implement the custom zoom in our application. Here are the steps we follow for the implementation of Custom zoom: 1)Capture the mouse down event and store the Point(X,Y); 2) Capture the mouse up event and store the Point(X,Y); 3)We will create a rectangle with the above 2 points and use this rectangle for ZoomToWindow(int X1,int Y1, int X2, int Y2) method of chart. But while trying to zoom itself , chartfx will take the four sides of the chart area as the selection for zoom. How can we override this selection area behaviour of ChartFX while zoom. i.e We want selection area (Rectangle with dashes) display should be exactly from the location where the left mouse button is clicked to the location where the mouse button is released...... Thanks Sudidela
×
×
  • Create New...