線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1866
推到 Plurk!
推到 Facebook!

如何用不同的颜色区分Chart FX 曲线

尚未結案
bestandtop
一般會員


發表:2
回覆:2
積分:0
註冊:2003-01-03

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-01-03 16:16:16 IP:202.194.xxx.xxx 未訂閱
我再程序中用到Chart FX 控件,用户需要在一个界面上看到电压最大值和最小值,并用不同颜色区别开。请问如何实现呀。
bestandtop
一般會員


發表:2
回覆:2
積分:0
註冊:2003-01-03

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-01-06 15:45:39 IP:202.194.xxx.xxx 未訂閱
为什么没人回复,难道不可以实现吗?
zenjohn
一般會員


發表:5
回覆:16
積分:4
註冊:2002-12-10

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-01-09 18:26:44 IP:211.75.xxx.xxx 未訂閱
Dear, 您可以將問題描述的再清楚一點嗎? 這樣的話也許有更多人可以幫你忙. 我沒用過ChartFX, 我是用TChart, 印象中, 不是可以設長條圖就能知道 最高與最低的值了嗎?
axsoft
版主


發表:681
回覆:1056
積分:969
註冊:2002-03-13

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-01-10 10:18:52 IP:61.218.xxx.xxx 未訂閱
引言: 我再程序中用到Chart FX 控件,用户需要在一个界面上看到电压最大值和最小值,并用不同颜色区别开。请问如何实现呀。
您在BCB區問Delphi的問題當然沒人理你嘍! 1.改變NSeries為3 試試看!就會得到你要的Voltage的Max/mini/Normal 三個不同顏色的Bar 2.改變Nvalue的數值就可以得到N組數的Bar (Voltage的Max/mini/Normal 三個不同顏色的Bar ) 3.找一下 C:\Program Files\Borland\Delphi6\Ocx\Chartfx\cfx2ocx.hlp 裡頭有詳細的說明: This chapter provides a brief introduction to the titles and legends that can be set in a chart and covers the following topics: 3.1 Changing titles in a chart. 3.2 Changing X legend and series legend in a chart. 3.3 Restricting the user from change titles. 3.1 Changing titles in a chart To change the titles of a chart you can set the TITLE property with a title code in the index and the new string in the value of the property, as shown below: {Sets or Changes the chart titles} Chart1.Title[CHART_LEFTTIT] := 'Revenues'; Chart1.Title[CHART_BOTTOMTIT] := 'Months'; 3.2 Changing X legend and series legend To change the legends of a chart you use the Legend property for the X legend and SerLeg property for the series legend and the code required to change that legends will be: {Sets or changes the X legend } {this code assumes that hwndChart has 2 series and 4 points } Chart1.Legend[0] := 'Jan'; Chart1.Legend[1] := 'Feb'; Chart1.Legend[2] := 'Mar'; Chart1.Legend[3] := 'Apr'; Chart1.SerLeg[0] := 'Sales'; Chart1.SerLeg[1] := 'Revenues'; 3.3 Restricting the user from changing titles Although the library provides a way for the user to change the titles that the programmer specifies, you can restrict this in two ways: a. Creating the chart without the CS_TITLES style. b. Using the Style Property. Related Properties: Title, Legend, SerLeg, Style, Chart Styles, 聯盟----Visita網站http://www.vista.org.tw ---[ 發問前請先找找舊文章 ]---
系統時間:2024-04-23 18:03:08
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!