Jump to content
Software FX Community

Frank

Staff
  • Posts

    1,761
  • Joined

  • Last visited

Everything posted by Frank

  1. Wrapping titles is not supported. PlotAreaOnly=false refers to which area the title is aligned with. It has nothing to do with title wrapping.
  2. Only a small change needs to be made: Replace: HitTestEventArgs ht = chart1.HitTest(point.X, point.Y); with: HitTestEventArgs ht = chart1.HitTest(point.X, point.Y,true);The true at the end is for Absolute position, otherwise the position is assumed to be inside the chart's "Drawing Area" which excludes the border, toolbar, legend box and DataGrid.
  3. > Can I set the max and min of axis Y and axis Y2 separately? In ... Definitely. What could be happening is that you are not assigning your series to each axis BEFORE setting the data to the chart. You may want to try this with a simple chart and if you continue to have problems post the code you are using and will gladly point you in the right direction. > When the axis Y2 ranges from 0 - 1500, these two constant lines are almost merged together ... There isn't really much that can be done here. You can align the text of each one to a different side (Near and Far) to avoid overlapping of the text. > a question that is a little bit off this topic: When I try to insert an image ... You are trying to insert an image where. What API/UI are you referring to here?
  4. The problem you are describing should e fixed by downloading the latest service pack from support.softwarefx.com
  5. > it is not necessary that all series on the graph would have data available ... If a series has no data at all, what's the label for? You asked how to put the label besides the line. If there is no data there is no line. > it would be good to have this label on the first point on each series This can be easily derived from my code: PointAttributes firstPoint = chart1.Points[seriesIndex,0];
  6. Chart FX doesn't provide any sorting funtionality, you need to sort your data prior to passing it to the chart.
  7. Unfortunately the Reporting Services viewer doesn't support any interactivity, being that AJAX or ActiveX. We do have both of these options in our .NET offering but they are not supported by RS.
  8. It looks like it has something to do (hard to say without seeing any code) with the way you are attaching your annotation objects to the X-Axis. Bar charts only support categorical X-Axis, so regardless of your X-Values, the attachment position must be expressed as an index in the X-Axis (0 for the first point, 1 for the second, etc.). In a line chart, the X-Axis is not categorical (if X-Values are passed) and therefore the attachment position is dependent on the X-Value and not on the point index.
  9. The main thing is: - Set the chart.Gallery to Bar. Otherwise, if you are passing X-Values and the main gallery is set to a line chart, the X-Axis will be controlled by it making the bars overlap since bar positions are not dependent on X-Values.
  10. You can label the last point of each series, and align the label to the right of the last marker: private void LabelSeries (int seriesIndex) { PointAttributes lastPoint = chart1.Points[seriesIndex,chart1.Data.Points - 1]; lastPoint.PointLabels.Visible = true; lastPoint.PointLabels.Alignment = StringAlignment.Near; lastPoint.PointLabels.Format = "%L"; lastPoint.Text = chart1.Series[seriesIndex].Text; } for (int i = 0; i < chart1.Data.Series; i++) LabelSeries(i); Nothing will guarantee that the labels are not going to overlap with each other.
  11. Chart FX dll's are not part of your solution's references. Simply add them to your references. This error only happens if you open the solution, if you open the Web Site as a folder there is no errors as the references are autiomatically taken from the bin folder.
  12. Yes. Simply set the label as a multi-line strong, for example: chart1.Data.Labels[0] = "Label 1\nSecond Line";
  13. %N will be instantiated with the appropriate value for each point but only if you use it in a "global context": chart1.AllSeries.Link.Url = http://myUrl.aspx?Point=%N&Series=%S;
  14. Frank

    Special Objects

    What version of VS are you using? Can you please include the header of your page. You should havesomething like this: <%@ Register assembly="ChartFX.WebForms" namespace="ChartFX.WebForms" tagprefix="chartfx8" %> <% @ Register assembly="ChartFX.WebForms.Adornments" namespace="ChartFX.WebForms.Adornments" tagprefix="chartfx8adornments" %><% @ Register assembly="ChartFX.WebForms" namespace="ChartFX.WebForms.Galleries" tagprefix="chartfx8galleries" %>In particular for this case, the registration of ChartFX.WebForms.Adornments is required. If it isn't there you can add it. In order to ber compatible with VS 2008 we had to do some changes there but forms create before the latest servce pack may present this problem.
  15. Like this: chart.Point[0].Color = Color.Orange; chart.Point[1].Color = Color.Brown;
  16. We are unable to reproduce this problem. When we execute the actions you describe we get the chart to immediately refresh when you hit OK. Please attach a sample VS project that reproduces the problem.
  17. > I am using hguage.rendercontrol() ... That's the problem. On one hand you are adding your controls to the Control tree (labels etc), in the other you are writing directly to the output stream. Instead of calling hguage.rendercontrol(), add the hgauge control to your Controls collection at the appropriate place (between the controls you want it to be). Notice that none of this is specific to gauges, this is all general ASP.NET stuff.
  18. Does your ChartFX.WebForms.dll vewrsion matches that in the licx file (7.0.2893.24916)? Check the version of that and all other Chart FX dlls in your bin folder.
  19. Some details can be found here: http://www.softwarefx.com/SfxCOMProducts/cfxClientServer/upgradePricing.aspx http://www.softwarefx.com/SFXPR/PRDetail.asp?Id=1
  20. It is not possible to write code with Chart FX for Reporting Services.
  21. Assuming you are using Chart FX 7, you should have no problemns in VS 2008. >My production server works fine .. but on my development box I can no longer test my charts working ... Check the source of the page and verify the URL to which the chart image is pointing. If you are running using IIS, make sure PSS is correctly setup. For more details see: Q7622021. Troubleshooting the PSS Service URL: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/762/2/021.htm?_r=1 If you are using the VS ASP.NET Web Server, check whether or not the file is there. > I have done a test deploy and the charts do display there. I have brought back some other working web apps but I cannot see or use them in the IDE. What's the problem here? what do you get at design time?
  22. Calling Controls.Add(...) is adding the controls to the control tree at the top level. This means that they are not inside any form. div or any other DOM element in your page. I think what you want to do is to create some parent control as the container of all these. It is not clear from this code whether or not you are adding the gauges to the controls collection as well.
  23. You need to use the CrossTab data provider. The easiest way to do this is through the Data Wizard, simply select these three columns and the grouping options will be given to you. For a code example on using the CrossTab provider please refer to the programmer's guide under Passing Data -> Crosstab DataProvider.
  24. I'm afraid not. We do only one pass, by the time GetAxisLabel gets called it is too late to re-size the margins. We call this during Paint.
  25. Chart FX can, however, you need to have a license of Chart FX, a license of Grid FX alone will not allow you to write code against the chart object. If you do have a Chart FX license you can export the chart using the Export method. PS: In the future, to help expedite your requests post Chart FX questions in the appropriate Chart FX forum
×
×
  • Create New...