Jump to content
Software FX Community

ARissing

Members
  • Posts

    11
  • Joined

  • Last visited

ARissing's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. We currently store off all of the charts we're currently using as XML. When we want to pull up a report, we merge the DataTable with the chart control loaded up from the XML. If we were to supply additional elements in the XML schema, would loading/saving that schema from the chart control maintain the additional XML elements or will it be lost? We plan on looking for these elements to peform additional run time functionality. I don't suspect you'll maintain it, but I just wanted to know before I attempt to maintain additional 'custom' sections in a separate document. If you don't, it would be something interesting to support in some fashion or another.
  2. The panes within ChartFX are displayed top to bottom. Is there not a way to display them in a left to right fashion? If not, is there any plans to implement such?
  3. Thanks Frank that worked. P.S. The indices are 1-based, so you know. The first one is 1, the second 2, and so forth.
  4. We're currently trying to combine bar charts with annotations, but have no success. As soon as we change the series type to line, the annotations show up. When switching back to bar, the annotations do not show up. Is this a known issue? Is there something we're missing?
  5. I had a problem like this as well recently. The solution I found was in tweaking the style of the series. A few things you can try: 1) Remove ForceZero styling 2) Set the chart.Gallery to Bar. 3) Make sure your X-Axis is bound as you intended it to be. We were binding the X-Axis as labels, though they were meant to be dates. We had to try several things and after the dust settled, I wasn't 100% sure what our problem was, as we found several issues along the way. Either way, hope that helps.
  6. Yup. That worked for me. Thanks for your help. I didn't even realize that the FieldMap had a DisplayName field ;D.
  7. Ok, this Xml should produce the problem (even with the most up to date dll): <?xml version="1.0" encoding="UTF-8"?> <CFX7> <AXESX> <ITEM index="0"> <TITLE> <TEXT>Date</TEXT> </TITLE> </ITEM> </AXESX> <SERIES> <ITEM index="0"> <TAG>Value_Tag</TAG> <TEXT>Value_Text</TEXT> </ITEM> </SERIES> <DATASOURCESETTINGS> <FIELDS> <ITEM> <NAME>Date</NAME> <USAGE>XValue</USAGE> </ITEM> <ITEM> <NAME>Value_Tag</NAME> <USAGE>Value</USAGE> </ITEM> </FIELDS> </DATASOURCESETTINGS> </CFX7> The text value seems to be linked to the Name field of the fields, which is quite preculiar. Because I don't see how you're mapping the name in the fields to the series, unless it is based on order. The text field in the series has no impact on the text property of the series and is purely determined by the fields name. The tag on the other hand seems to be set by the order of the series with regards to the fields. To me the logic seems a little off one way or another, if anything it would seem more straight forward if the series had an 'Id' field or a 'Name' field that would be allow you to map back to the field, rather than Text. In much the same way that a DataTable works, you want one string for the database and one string for the user to see. Eitherway, it seems I'll have to rename the name element in the fields to overcome this problem. Please correct me if this is not the best route to take.
  8. I was looking into an issue from a user who had a problem with one of our charts that had two panes on it. They were trying to modify the Y-Axis' min/max values, but could not as each time they would right click they would get the properties for the first pane (the main pane). I looked into it and it seems the HitTest method used in the chart does not take into account the possibility of a second pane in the charts and it could be overcome pretty easily. For now, I implemented a workaround and decided to post it so that others may be able to overcome the problem if they run into it: private void chtMain_InternalCommand(object sender, CommandUIEventArgs e) { switch (e.CommandId) { case (int)CommandId.Options: // In a two pane chart, we need to force the properties for the second pane. if ((this.chtMain.Panes.Count > 1) && this.chtMain.Panes[1].BoundingRectangle.Contains(this.m_pntRightClickForMenu)) { e.Handled = true; this.chtMain.ShowPropertiesDialog(this.chtMain.Panes[1].AxisY, 0); } break; } } Btw, the "this.m_pntRightClickForMenu" is captured from the right click on the chart to determine where the user right clicked. Something I would wish we could get from exposing the context menu itself, but hey a man's got to have dreams right ;-)
  9. We're currently using the Import method to load the schema of the chart and we've noticed a bug in the loading of the XML data. In particular, when loading from XML, the series' text property does not properly load back up from the xml they were saved with. The series are saved off with a user friendly name in the text field and a database friendly ID in the tag field. But upon loading the chart's schema back from the file system the tag's value is placed into the text field overwriting it. In the end, we have the DatabaseFriendlyID value placed in both the Tag and the Text fields. From what I've seen, it just seems there's a typo somewhere in the loading code.
  10. That wasn't the problem I was having. I was having difficulty finding the location of the points that were being placed on the chart. I believe I've figured it out though, using MarkerToPixel, but its pretty hackish in general.
  11. I'm currently trying to apply annotations to a boxplot chart. I'm having a bit of a problem because the x-axis is not binding a proper min/max and subsequently I do not have the proper positions to place the annotations. My data is in the following form: 1/2006 2/2006 3/2006 4/2006 1.023 1.205 1.231 1.344 1.223 1.205 1.245 1.145 ... ... ... ... The columns are the dates, which is part of the problem I believe. It doesn't seem that the X-axis is bound whatsoever. What I'm trying to achieve is that the Y-axis is the values of the quartiles (hence the box plots) and the x-axis is the time progression of the data. The examples and the comments I've seen on the forums don't work with the boxplot in this fashion. Without the X-axis properly bound, I cannot determine the x/y positions to place my annotations on the graph. Am I missing something or am I just out of luck?
×
×
  • Create New...