That assumes that Text is an index value. My application allows the users to select one for four different display types here (age, date, year, index), so this does not work.
Ed Dressel
Search found 228 matches
- Wed Jan 12, 2011 3:12 pm
- Forum: VCL
- Topic: changing the color of some of the labels
- Replies: 27
- Views: 37316
- Tue Jan 11, 2011 4:59 pm
- Forum: VCL
- Topic: changing the color of some of the labels
- Replies: 27
- Views: 37316
Re: changing the color of some of the labels
Attached is a demo that reproduces the problem. It appears that with a bar series, CalcXPos gives the left side of the bar and the X parameter is the center of the bar. (In the attached demo, the caption shows the X, Y position of the mouse when it is over the TChart, along with the CalcXPos and X v...
- Mon Jan 10, 2011 6:00 pm
- Forum: VCL
- Topic: changing the color of some of the labels
- Replies: 27
- Views: 37316
Re: changing the color of some of the labels
I tried the following LOC but X never equals lSrs.CalcXPos(I) (FRedLblIndexes is a TList of integer and contain the index of values that should be drawn in red): procedure TfrmDBCalcRetirementYears.ChartBottomAxisDrawLabel(Sender:TChartAxis; var X,Y,Z:Integer; var Text:String; var DrawLabel:Boolean)...
- Fri Jan 07, 2011 11:19 pm
- Forum: VCL
- Topic: changing the color of some of the labels
- Replies: 27
- Views: 37316
Re: changing the color of some of the labels
Is there any way to get the X index from the X variable (which appears to be the pixels)? The text assigned to the "Text" variable can vary.
Thank you,
Ed Dressel
Thank you,
Ed Dressel
- Tue Dec 21, 2010 8:18 pm
- Forum: VCL
- Topic: Conditional Color Axis Label Color
- Replies: 7
- Views: 9973
Re: Conditional Color Axis Label Color
[At least] One more question... After I add labels to the bottom axis, if I reset the series but don't add customized labels, the axis do not appear at all. See the attached demo-- 1) When it is first started, black labels from 0... 19 show up. 2) Checking "Custom color captions" at the top and one ...
- Fri Dec 10, 2010 8:23 pm
- Forum: VCL
- Topic: Conditional Color Axis Label Color
- Replies: 7
- Views: 9973
Re: Conditional Color Axis Label Color
In testing, when adding labels, the 'smarts' used to be sure labels do not over-right each other is gone, and they axis labels can be impossible to read.
I really don't want the 'over-right smarts' to go away.
Is there a solution for this?
I really don't want the 'over-right smarts' to go away.
Is there a solution for this?
- Fri Dec 10, 2010 7:07 pm
- Forum: VCL
- Topic: Conditional Color Axis Label Color
- Replies: 7
- Views: 9973
Re: Conditional Color Axis Label Color
Thanks. That works. I was looking at the source and saw that a TList was used (rather than a TObjectList) so I assumed calling .Clear would not free the objects. I see that you implemented your own Clear method and freed the objects. Just curious, why wasn't a TObjectList used rather than a TList? T...
- Thu Dec 09, 2010 4:22 pm
- Forum: VCL
- Topic: Conditional Color Axis Label Color
- Replies: 7
- Views: 9973
Conditional Color Axis Label Color
I have a user's request to change the color of an axis label based on the value that the label represents. I tried the following code: procedure TForm1.FormCreate(Sender: TObject); begin Series1.FillSampleValues(20); Series2.FillSampleValues(20); Chart1.BottomAxis.OnDrawLabel := DrawBottomAxis; end;...
- Wed Dec 01, 2010 4:16 pm
- Forum: VCL
- Topic: Legend Position
- Replies: 5
- Views: 6962
Re: Legend Position
The attached demo (using 8.06) draws the legend in the wrong location the first time. After a redraw, it works fine.
Ed D
Ed D
- Tue Nov 30, 2010 11:36 pm
- Forum: VCL
- Topic: Legend is missing item in multi-pie chart
- Replies: 1
- Views: 3713
Legend is missing item in multi-pie chart
in the attached Delphi demo, the legend is missing an item from the pie chart on the right because an item is missing on the left pie.
How can I get the legend to show all the items in both charts?
Thank you,
Ed Dressel
How can I get the legend to show all the items in both charts?
Thank you,
Ed Dressel
- Tue Nov 30, 2010 4:36 pm
- Forum: VCL
- Topic: Legend Position
- Replies: 5
- Views: 6962
Re: Legend Position
This works until I resize the chart--the legend stays in the same location.
I tried some before/after draw events, and they did not work.
Any suggestions?
Ed Dressel
I tried some before/after draw events, and they did not work.
Any suggestions?
Ed Dressel
- Tue Nov 30, 2010 2:06 pm
- Forum: VCL
- Topic: Legend Position
- Replies: 5
- Views: 6962
Legend Position
I need the legend to be to the right of the chart, but I want it to be aligned to the bottom rather than the top of the chart.
How can I do that?
Thanks,
Ed Dressel
How can I do that?
Thanks,
Ed Dressel
- Tue Jul 13, 2010 5:04 pm
- Forum: .NET
- Topic: Hint for Annotation
- Replies: 3
- Views: 8015
Hint for Annotation
I would like to create a custom hint for an annotation.
Is there any way to get a OnHint event for a annotation?
Ed Dressel
Is there any way to get a OnHint event for a annotation?
Ed Dressel
- Tue Jul 13, 2010 3:53 pm
- Forum: VCL
- Topic: TMarksTipTool: OnHint index?
- Replies: 3
- Views: 5943
TMarksTipTool: OnHint index?
With a TMarksTipTool.OnGetText, there is no .Index property that I can find to know what help should be pointing at.
Any suggestions on how to find this?
Ed Dressel
Any suggestions on how to find this?
Ed Dressel
- Mon Jun 21, 2010 7:03 pm
- Forum: VCL
- Topic: TeeChart 6: Grid Lines and other non-black lines don't print
- Replies: 2
- Views: 5389
Re: TeeChart 6: Grid Lines and other non-black lines don't print
How are you printing the charts? Directly from TChart? You may want to try creating an image and then printing it using a reporting tool. I do this and have not had any reported problems. (Probably not a simple task either
).
Ed Dressel
![Smile :-)](./images/smilies/icon_smile.gif)
Ed Dressel