Jump to content
Software FX Community

Neoteny

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Neoteny

  • Rank
    Member
  1. Mmm, you make it sound so easy, just add zero point five to fix the problem. I thought I pointed out that the chart needs to work with numbers (for x-y and bubble size) that I don't know beforehand. To complicate things, I don't know the number of series and points the chart needs to display either. To find a correction algorithm took us almost a week, the information provided in some posts in the forum (including an algorithm used in an older version of the chart control) and in the resource centre wasn't of much help. My point is, that one would (should?) expect the chartfx control to come with a 'best guess' for the bubble chart so -under normal circumstances- one wouldn't have to resort to 'tweaking'. Of course what's best is always a matter of opinion. One can argue that setting the max of the chart to the center of the outermost bubble is decent default behaviour (though everyone of our customers thinks differently and expects the chart to dsiplay the whole bubble), but I was stunned to discover that two charts with (say) 6 bubbles can display with different bubble sizes, because one chart contains 2 series with 3 points each and the other contains 1 series with 6 points. I can't find any rationale for that behaviour (and it further complicated finding a decent algorithm).
  2. I'm sorry, I meant nested axes, not an x-axis at the other side of the chart. Try this code: Chart1.Gallery = Gallery_Gantt 'Chart1.AxisX.Title.Text = "My X-Axis Title Test" 'The next lines create another x axis and set its properties Dim axis As axis Set axis = Chart1.axis(3) axis.Visible = True axis.Min = 0 axis.Max = 12 axis.Step = 3 axis.YAxis = False axis.Gridlines = True axis.Position = AxisPosition_Center axis.Title.Text = "My Secondary X-Axis Title Test" Of course, while trying to adjust your example to match my findings I discovered that axis.Position is the key and that the title is displayed correctly when setting the position to AxisPosition_Near. Please allow me to say that this is not the most obvious place to look for a change in the vertical orientation of an axis title.
  3. When plotting a bubble chart with automatic axis scaling (for both x- and y-axis) it seems that the calculated value for the axis.max is the center of the outermost bubble, not taking into account the diameter of the bubble. the topmost and rightmost bubble(s) are cut in half. Sorry to say, but this doesn't look good. One would expect that automatic scaling takes the bubble diameter into account. I don't want to switch to manual scaling because I don't know in advance what the range is for the data the chart is fed with, and I don't want to program complex calculations to make corrections for the bubble diameter. I'd expect the control to solve this problem. Is there any chance for a quick fix? Example code: Dim i As Long Dim j As Long Dim ns As Long Dim np As Long Dim v As Long ns = 3 np = 3 v = 1 With Chart1 .OpenData COD_Values, ns * 2, np .OpenData COD_XValues, ns, np For i = 0 To (ns * 2) - 1 Step 2 .Series(i + 1).YAxis = YAxis_Secondary .AxisY2.Visible = False For j = 0 To np - 1 .Value(i, j) = v .Value(i + 1, j) = v .XValue(i, j) = v v = v + 1 Next j Next i .CloseData COD_XValues .CloseData COD_Values .Gallery = Gallery_Bubble End With
  4. If a x-axis has a title and the gallery is changed to Gantt, the title is displayed vertically. However, if two Axes are placed on the x-axis and the second one (Axis.Item(3)) has a title, the title is not rotated, but placed on the bottom and displayed horizontally. It takes way too much space this way.
  5. On second thought... There are some strange consequences. Suppose the chart decides that the best way to place the ticks/gridlines is every three bars. Suppose months are plotted on the x-axis, from januari to december. The labels are centered and end up under the 2,5,8,11 bar, corresponding to the months februari, may, august, november. But the labels that are displayed are the last labels before the division: march, june, september, december. This is very confusing. One tends to interpret the label to match the bar right above it, not the one to the right of it. I can't think of a way to correct this, because there's no way to find out how many labels are skipped (the 'Every') when the mode is automatic.
  6. Thanks a lot! I somehow missed this one.
  7. I (and my customers) are used to having ticks and gridlines between clustered bar groups. In ChartFX it seems there's no way to accomplish this. ticks and gridlines are always drawn through a bar cluster and are centered above the label. It would be nice if it would be an option in ChartFX 7 (is there a release dat yet?) to place the grid between the bar clusters. It would make the vertical interlacing look better too. Any thoughts on this one? Regards, Caius
  8. anyone? It's really not a very good looking feature :-(
  9. When combining lines and bars in a chart it is annoying that line series dissappear behind bars. To solve this I have to move line series to the end (so they are drawn last and over the bars). However, I would like to make it appear to the user that the order hasn't changed. This means I need a legend where lines are often the first items in the legend, followed by the bar series. I know I can use the userlegendboxobj to create my own legend, but it would've been nice if I could attach a series to a userlegendboxitem. Unfortunately I can only attach points to a userlegendboxitems. I can achieve my goal (though with much more 'hacking' than I'd hoped) but for one thing: one of the nicer features of ChartFX is the highlighting. For a series legend this works very nice: moving over the legend item highlights the attached series. However, I lose this feature when I use a userlegendbox, because there's no way of customizing the highlighting and the default behaviour is no good for my purposes, so I have to turn it of. Of course, a simple ZOrder property for a series would solve most of my problems in a much easier way. Are there plans to improve functionality, related to this problem in future service packs/versions? Regards, Caius Caesar
  10. How can I remove the shadow effect from a 2d radar chart (like the PolarNoShadow example on your site)? Regards, Caius Caesar Scanmar
  11. Hi, If I do the following: Chart1.PointLabels = True Chart1.PointLabelOffset.X = 10 Chart1.PointLabelOffset.Y = 10 Nothing happens... I can't create an object (type is ExternalPoint and that's hidden and anyway the property is readonly) Strangely, the PointLabelOffset property is not a member of the PointAttributes object... Any thoughts on this one?
  12. Sorry for the late reply, doesn't matter which style i use (print or normal, it's all the same...). I did find a workaround though: For every font in the ChartFX object model I do the following just prior to calling the paint method (example is for legendbox font): dim dSize as double dSize = Chart1.LegendBoxObj.Font.Size Chart1.LegendBoxObj.Font.Size = dSize As you can see, this looks ridiculous, but it somehow triggers something that makes the font scale correctly.
  13. Hi, I'm trying to include a chart in print output, using the paint method. I have the following problem: When I leave the font of chart objects (axes,titles...) 'untouched' everything is fine. The chart prints wysiwyg. However, when I change the font of one or more of the chart objects, the fonts on the print output become much smaller than on the screen (unreadable). They don't even come close to the point size I specified. I tried to work around this problem by adjusting the size of the fonts prior to printing and restoring the size after printing, but I can't discover the scaling factor that I should use (I fiddled around with the twipstopixel values of screen and printer, but that's not it). Could somebody enlighten me?
  14. The mouse down and up events return fairly odd numbers for args.button (1048576 for left button and 2097152 for right button, it would have been nice to capture them in an enumeration...), but there's no 'shift' argument that indicates wether shift and/or ctrl keys are pressed during the event. I need this info because I have code for selecting objects. shift and ctrl keys have their purpose in that. I must say, I never worked with a control that didn't pass this info. Any chance of a bugfix? I have a deadline next week...
×
×
  • Create New...