Jump to content
Software FX Community

AndreG

Staff
  • Posts

    333
  • Joined

  • Last visited

Everything posted by AndreG

  1. How are you performing the drilldown?
  2. This works for me. Can you post your results (C#, sorry, not so good with VB)? chart1.Data.Series = 3; chart1.Data.Points = 10; Random r = new Random(); for (int i = 0; i < chart1.Data.Series; i++) { for (int j = 0; j < chart1.Data.Points; j++) { chart1.Data[i, j] = r.Next(100); } } chart1.Gallery = Gallery.Bar; chart1.AllSeries.Stacked = Stacked.Stacked100; chart1.AllSeries.PointLabels.Visible = true;
  3. The last series point labels work for me. What version dll are you using? A service pack can be downloaded from www.mysoftwarefx.com, using your serial number.
  4. For the license to be included on the project you must compile the code that instantiates the chart as an executable. If this is not how you plan to use the chart, an alternative is to instantiate a dummy chart in the executable that loads the components where your real chart are created. Would this be an option for you?
  5. Thanks! So you would like different data to be displayed as point labels. Take a look at the documentation for point labels: http://support.softwarefx.com/Chart_FX_7/api#web_htmls/pointlabelattributes_format.htm Maybe add the number of tasks completed as text and change the PointLabelAttributes.Format to "%L"?
  6. The image did not work. Please make sure you are using the options tab (when replying) to attach the image. Otherwise upload the image somewhere else on the web and link to it.
  7. Not exactly sure what you mean. Can you post a mock chart and maybe some mock data?
  8. This behavior is by design. Not sure how you were expecting to see negative values on a pie chart. Since the value is used to calculate the size of the area in the pie, a negative value would yield negative area. That is why we just use the absolute value to calculate the area.
  9. No. Due to its high customization capabilities Chart FX for COM cannot provide end users with documentation. The Help option is not available.
  10. The menu bar has been deprecated and should not be used. All of it's functions are available in the toolbar.
  11. It's a timing issue. You have added a pane to the collection, but the axis associated with it will only be added to the collection of axes later (if at all, not sure). Try this: pane1.AxisY.Notify = true;
  12. Different pane means different Axis. Set that axis' notify property to true chart1.AxesY[index].Notify = true;
  13. Unfortunately you cannot have 2 point labels per point. You will need to use annotation. Take a look at the ValueToPixel method on the axis, that will help you position the annotation text correctly.
  14. The chart tooltip comes from the image map. chart1.AllSeries.Link.OnMouseOver changes the onmouseover event on the area of the image map. The tooltips changes the text property of the area of the image map (which most browsers use to display tooltip). So if you are going to use onmouseover, I would recommend that you turn off the chart tooltip. Note: if your image marker is not circular, this might not work for you. Test the different markers and see what type of area they use on the source of the page.
  15. Hello Bowofolaf, Unfortunately this is not possible with the chart tooltips API. But it might be accomplishable. First, make the mouse over property of all points call your js code. chart1.AllSeries.Link.OnMouseOver = "mouseover(this);"; Then, display your own tooltip using js: <script type="text/javascript">function mouseover(item) { if (item.shape == 'circle') { //diplay tooltip code here} } </script>
  16. Try this: chart1.AxisY.Notify = true;
  17. Take a look at the BubbleCharts sample that ships with the product, it does something like that. At first it sets the field usage for the field that holds the text as Label. Then it reads all the labels and sets in an array of strings. Finally it uses chart1_GetPointLabel to read from the array of strings into the Text property of the point.
  18. Icons as labels are not possible in Chart FX 7. Maybe use annotations?
  19. Oh, you can set field mapping on the XML too. Try this: <?xml version="1.0" encoding="UTF-8"?> <CFX7> <PANES> <ITEM index="0"> <AXES> <ITEM index="0"> <LABELSFORMAT> <FORMAT>Date</FORMAT> </LABELSFORMAT> <POSITION>Far</POSITION> <TITLE> <TEXT></TEXT> </TITLE> </ITEM> </AXES> </ITEM> </PANES> <AXESX> <ITEM index="0"> <GRIDS> <MAJOR> <VISIBLE>False</VISIBLE> </MAJOR> </GRIDS> <LABELS> <ITEM> P2 </ITEM> <ITEM> P1 </ITEM> </LABELS> <TITLE> <TEXT></TEXT> </TITLE> </ITEM> </AXESX> <ALLSERIES> <GALLERYARRAY type="ChartFX.WinForms.Internal.IGalleryType[]"> <ITEM index="0" type="ChartFX.WinForms.Galleries.Line"/> <ITEM index="19" type="ChartFX.WinForms.Galleries.Bar"/> </GALLERYARRAY> <GALLERY>Gantt</GALLERY> </ALLSERIES> <SERIES> <ITEM index="0"/> </SERIES> <LEGENDBOX> <VISIBLE>False</VISIBLE> </LEGENDBOX> <DATAGRID> <VISIBLE>True</VISIBLE> </DATAGRID> <BORDER type="ChartFX.WinForms.Adornments.ImageBorder" assembly="ChartFX.WinForms.Adornments, Version=7.0.4770.21916, Culture=neutral, PublicKeyToken=a1878e2052c08dce"/> <BACKGROUND type="ChartFX.WinForms.Adornments.GradientBackground" assembly="ChartFX.WinForms.Adornments, Version=7.0.4770.21916, Culture=neutral, PublicKeyToken=a1878e2052c08dce"> <COLORS type="ChartFX.WinForms.Adornments.GradientBackground+ColorCollection" assembly="ChartFX.WinForms.Adornments, Version=7.0.4770.21916, Culture=neutral, PublicKeyToken=a1878e2052c08dce"/> </BACKGROUND> <DATASOURCESETTINGS> <FIELDS> <ITEM> <NAME>Project</NAME> <USAGE>Label</USAGE> </ITEM> <ITEM> <NAME>Start</NAME> <USAGE>FromValue</USAGE> </ITEM> <ITEM> <NAME>Finish</NAME> <USAGE>Value</USAGE> </ITEM> </FIELDS> </DATASOURCESETTINGS> </CFX7>
  20. Chart1.Data.Clear() is not clearing the labels in the X axis (since that is not necessarily data). I would just reset the chart before passing new data to it Chart1.Reset(). Note that if you do that you will need to reconfigure all the properties you set in markup, including the size of the chart. Maybe export all properties and then import them back after a reset?
  21. You need to set up your field mapping before passing the data to the chart. This worked for me: chart1.Import(FileFormat.Xml, "C:\\temp\\chart.cfx"); chart1.DataSourceSettings.Fields.Add(new FieldMap("Project", FieldUsage.Label)); chart1.DataSourceSettings.Fields.Add( new FieldMap("Start", FieldUsage.FromValue));chart1.DataSourceSettings.Fields.Add(new FieldMap("Finish", FieldUsage.Value)); XmlDataProvider cfxXML = new XmlDataProvider();string dataPath = "C:\\temp\\data.xml"; cfxXML.Load(dataPath); chart1.DataSourceSettings.DataSource = cfxXML;
  22. Can you post a sample project that helps us replicate this? Something that I can just copy/paste and run on my machine?
  23. Hello, This forum is for Chart FX 7. Chart FX 2.0 is a legacy product and no longer supported. Regards,
×
×
  • Create New...