Jump to content
Software FX Community

binqing

Members
  • Content Count

    22
  • Joined

  • Last visited

Community Reputation

0 Neutral

About binqing

  • Rank
    Member
  1. We are developing a window form application under VS2010 using ChartFX Client Server Control, and experienced some problem with the ChartFX Client Server Control. After the project is set up, add the ChartFX Client Server Control (cfx4032.ocx) to the reference of this project, and then add this control to the ToolBox, while we drag this control to the window form, we get the following error message "Failed to import the ActiveX control. Please ensure it is properly registered." At the same time we can see a warning icon in front of the "AxChartfxLib" under the "Reference" folder in the 'So
  2. Frank I finally found the culprit! By default, ForceZero property is set to be true for all the Y axis, so if you want to set the min of the axis_Y to be a non-zero value you need to specifically reset the ForceZero property to be false and then the value you want it to be can show up. For example, this .myChart.Axis[ChartfxLib.CfxAxisIndex.AXIS_Y2].ForceZero = false;But my question about Zoom and Step is still there. If I want to plot time on Axis_X at 15 minute interval, how should I set the Step and MinorStep? I plot two groups of data on Axis_Y and Axis_Y2 separately. When I use the z
  3. Hi, Frank this is the continuation of the previous question in post: http://community.softwarefx.com/forums/p/8774/20477.aspx#20477 Frank,I did try again, and it seems I do need some extra help for this. I am still using ChartFX 5.1 - the oldest version. I did not find any property, like Near or Far, to realign the text of the title of these two constant lines. So it this property available in ChartFX 5.1 or not.The following is the code for plotting the graph. I put all my questions in the inline comments, making it easier for you to read. After the data is plotted, I see the zoom too
  4. Frank In the following module, if I donot plot the stage values, the min and max of Asix_Y2 shows correctly. Does this help to find the problem? Thanks private void DrawOutFlow(double[,] outFlow, double crest, double spillway) { int count = 0; int nseries = 0;string timeLabel = ""; count = outFlow.GetLength(0); nseries = this.chartOutFlow.NSeries; //plot the crest and spillway elevations this.chartOutFlow.OpenDataEx(ChartfxLib.CfxCod.COD_CONSTANTS, 2, 0); this.chartOutFlow.ConstantLine[0].Value = crest; this.chartOutFlow.ConstantLine[1].Value = spillway; this.chartOutFlow.Clos
  5. Frank, I did try again, and it seems I do need some extra help for this. I am still using ChartFX 5.1 - the oldest version. I did not find any property, like Near or Far, to realign the text of the title of these two constant lines. So it this property available in ChartFX 5.1 or not.The following is the code for plotting the graph. I put all my questions in the inline comments, making it easier for you to read. private void DisplayChart(Array selectedDam) {string damName = ""; double crest = 0.0;double spillway = 0.0; double[,] outFlow;damName = "Adobe Dam"; crest = 1405.5 ;spillway
  6. Frank, Thanks so much for your such quick reply. For the first two items I can not test now. But I will definitely try it in office tomorrow, and post the related code if I do need some more help. I am going to elaborate in a little bit detail of what I mean about inserting an image: When you are writing a new post, there is a group of buttons just above the text area. There are such buttons as B for bold, I for italic, U for underline, list bullet, and so on. Among them there is a button on which there is a little tree image. when you hover the mouse over it, the intelli-text shows so
  7. Hi, all I am trying to plot few group of data on axis Y and secondary axis Y with time as axis X. The data to be plotted on axis Y are ranging from 0 - 1000, but the data to be plotted on axis Y2 are ranging from 1000 - 1500. At the same time I want to set two constant lines, and their values are around 1000, but the difference between them is very small. For example, the first constant line is 1335, and the second is 1340. Here is my questions: Can I set the max and min of axis Y and axis Y2 separately? In the code I set them separately, for example, axis Y ranges from 0 -
  8. Hi, Frank After the first post, I commented out four lines of code which are used to assign the min and max values for X-axis and Y-axis, and run the program again. The results are exactly same, so I doubt those four lines of code did not do anything, although they are executed. When I open the Properties -> Y-Axis -> Details -> Scale tab, I found the minimum is -20.0 and maximum is 0.0 for the Y-axis. They should be -21.0 and 1.0 respectively. Does this imply that the culprit is hiding somewhere else? It would be so nice appreciated if you can give a tip for fix!
  9. I am making a 2D chart for a pit. As you see pit goes below the ground level, so I defined a constant line as ground level and made its to be zero. But I also do not want the top of the pit attach all the way to top of the chart. So I define the Max of the Y-Axis to be 1.0 in the code so that I can see the whole graph and at the same there will be a little space between the pit and the top of chart. But when I run the program, I found that the pit tightly attached to the roof of the chart. When I open the Properties -> Y-Axis -> Details -> Scale tab, I found minimum is a pretty reason
  10. Hi, Frank Here are the new findings when I tried to re-register these two ChartFX related DLLs. In the command line I typed in the following two lines C:\Program Files\Maricopa FCD\Pit Scour 102>regsvr32 axInterop.charfxLib.dll C:\Program Files\Maricopa FCD\Pit Scour 102>regsvr32 Interop.charfxLib.dll where C:\Program Files\Maricopa FCD\Pit Scour 102 is the directory the application is installed, and two ChartFX related DLLs are residing. And the following are the pop-up message I got. axInterop.chartfxLib.dll was loaded, but the DllRegisterServer entry point
  11. Hi, Frank When I run the application with a three-series chart under VS 2003 IDE, everything is fine, including the ChartFX. (I posted the code of some modules in the following site http://community.softwarefx.com/forums/t/7899.aspx) But when I deploy this and install it in either my own machine or another testing machine, and when I try to open the chart, I got the following message. And I did check the deploy package for several times and even re-register the ChartFX related module on the computer where the application is installed, but still no good. "An unhandled exception has o
  12. Frank I did check several times of my deploy package, and even re-registered all dlls. But still no luck. When the Exception message pops up, I clicked the Details button, and find something that might be caused by ChartFX. Oops :-( The following is the detail message I saw from the Exception *********** Exception Text *********************** System.Runtime.InteropServices.COMException (0x800A017D): Exception from HRESULT: 0X800A017D(CTL_E_INVALIDPROPERTYARRAYINDEX ) at ChartfxLib.ICfxSeriesEnum.get_Item(Int16 index) at PitScour102.frmGraphics.frmGraphics_Load(Object sender, Eve
  13. Hi, Frank Here it comes again all over!!! Last weekend I powered off my machine without closing all the open applications including the ChartFX. This Monday those working modules are not working any more. I thought some of the ChartFX installed module might be corrupted. So I rerun the ChartFX installation package by choosing the 'Repair" option, but issue is still not fixed. So I redid everything. Here I will tell in details what I have done, and hopefully you can help me out. After I open the VS 2003 IDE, I right click some where in the 'Toolbox', and then choose 'Add/Remove Item ...', th
  14. Hi, Frank Here comes another annoying problem. When I run this app un VS 2003 IDE, everything is fine, including the ChartFX. But when I deploy this and install it in either my own machine or another testing machine, and when I try to open the chart, I got the following message. "An unhandled exception has occurred in you application. If you click Contiune, the application will ignore this error and attempt to contiune. If you click Quit, the application will be shut down immediately" "Exceptoion form HRESULT: 0x800A017D (CTL_EINVALIDARRAYINDEX)." After I click the Details butt
  15. chartScour.OpenDataEx(ChartfxLib.CfxCod.COD_VALUES, 2, count); Is defining TWO (2) series. Change it to: chartScour.OpenDataEx(ChartfxLib.CfxCod.COD_VALUES, 2, count); Frank, you mean, change to chartScour.OpenDataEx(ChartfxLib.CfxCod.COD_VALUES, 3, count);, right? Thanks, it is working fine now!
×
×
  • Create New...