JP3616992B2 - Graph display system and data value display processing program thereof - Google Patents

Graph display system and data value display processing program thereof Download PDF

Info

Publication number
JP3616992B2
JP3616992B2 JP2001044188A JP2001044188A JP3616992B2 JP 3616992 B2 JP3616992 B2 JP 3616992B2 JP 2001044188 A JP2001044188 A JP 2001044188A JP 2001044188 A JP2001044188 A JP 2001044188A JP 3616992 B2 JP3616992 B2 JP 3616992B2
Authority
JP
Japan
Prior art keywords
character string
graph
area
data value
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001044188A
Other languages
Japanese (ja)
Other versions
JP2002244644A (en
Inventor
千春 間々田
Original Assignee
株式会社日立情報システムズ
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社日立情報システムズ filed Critical 株式会社日立情報システムズ
Priority to JP2001044188A priority Critical patent/JP3616992B2/en
Publication of JP2002244644A publication Critical patent/JP2002244644A/en
Application granted granted Critical
Publication of JP3616992B2 publication Critical patent/JP3616992B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、グラフ作成において、データ値同士が重ならないように、グラフ中にデータ値を自動的に配置するグラフ表示システム及びそのデータ値表示処理プログラムに関するものである。
【0002】
【従来の技術】
グラフにデータ値を自動的に表示するシステムには、例えば特開平11−282931号公報に記載されている如く、グラフ化の対象となるデータに対して、軸の目盛り及び目盛りに対応した位置に数値ラベルを自動的に貼り付けるものがある。
【0003】
【発明が解決しようとする課題】
しかしながら、前記従来技術は、円グラフや棒グラフにデータ値を直接表示する際に、隣り合うデータ値の文字列領域との間隔が狭いためにデータ値文字列領域同士が重なってしまうことがあり、この重なりを回避するためには、文字サイズを小さく設定して表示し直すか、もしくは手動でデータ値の文字列領域の位置を調整しなければならず、グラフ作成に非常に手間が掛かるという不都合があった。
【0004】
本発明の目的は、グラフ中に各要素のデータ値を表示する際、文字サイズを変更することなく、相互のデータ値文字列領域の重なりを自動的に回避し、各データ値を表示するグラフ表示システム及びそのデータ値表示処理プログラムを提供することである。
【0005】
【課題を解決するための手段】
上述の目的を達成するため、請求項1の発明によるグラフ表示システムでは、グラフデータ及び文字パラメータデータが記憶される記憶部を有する記憶装置と、前記記憶装置に記憶されるデータを基にグラフ作成及びデータ値表示のための処理を行うグラフ作成装置と、前記グラフ作成装置で作成されたグラフに表示する表示装置とを備えるグラフ表示システムにおいて、前記グラフ作成装置が、グラフ本体を作成するグラフ本体作成部と、データ値表示の際に必要な文字列領域の大きさを算出する文字列領域算出部と、前記文字列領域算出部で算出された文字列領域の表示位置を設定する文字列領域位置設定部と、前記文字列領域位置設定部で設定された位置に関する情報を登録する位置情報登録部と、前記位置情報登録部に登録された全データ値の表示位置情報に基づいて、文字列領域の表示処理を行う文字列領域表示処理部と、を備え、
円グラフあるいはドーナツ状グラフを作成する場合には、前記文字列領域位置設定部は、表示対象たるデータ値の文字列領域が円グラフあるいはドーナツ状グラフの内部に表示された状態で、この文字列領域と扇形領域とが重なっている部分の面積を算出し且つここで得られた面積が当該文字列領域の面積に占める割合を算出し、算出された割合がしきい値より大きいか否かを判定し、その判定結果に基づいて表示対象たるデータ値の文字列領域を円グラフあるいはドーナツ状グラフの内部に表示するか外部に表示するかを決定して、各データ値の文字列領域の表示位置を設定および再設定する。また請求項2の発明によるグラフ表示システムでは、前記表示システムにおけるグラフ作成装置に、前記文字列領域位置設定部により円グラフあるいはドーナツ状グラフの外部に表示するよう決定されたデータ値の文字列領域に対して、当該文字列領域とグラフとを結ぶ引き出し線の表示処理を行う引き出し線表示処理部を、前記グラフ作成装置に備える。
【0007】
請求項の発明によるデータ値表示処理プログラムでは、円グラフあるいはドーナツ状グラフを作成する場合には、コンピュータに、グラフデータに基づきグラフ本体を作成させる機能と、前記グラフデータと文字パラメータデータとに基づき各データ値を表示する
際に必要とする文字列領域の大きさを算出させる機能と、表示対象たるデータ値の文字列領域が円グラフあるいはドーナツ状グラフの内部に表示された状態で、この文字列領域と扇形領域とが重なっている部分の面積を算出し且つここで得られた面積が当該文字列領域の面積に占める割合を算出し、算出された割合がしきい値より大きいか否かを判定し、その判定結果に基づいて表示対象たるデータ値の文字列領域を円グラフあるいはドーナツ状グラフの内部に表示するか外部に表示するかを決定して、各データ値の文字列領域の表示位置を設定及び再設定させる機能と、その設定した位置の位置情報を記憶部に登録させる機能と、その登録された各データ値の表示位置情報に基づき、全データ値に対してグラフ上への表示処理を行わせる機能とを実現させる。
また請求項の発明によるデータ値表示処理プログラムでは、前記表示処理プログラムにおいて、登録された全データの表示位置情報に基づき、円グラフあるいはドーナツ状グラフの外部に表示するよう決定されたデータ値の文字列領域に対して、当該文字列領域とグラフとを結ぶ引き出し線を表示するための引き出し線表示処理を行わせる機能を実現させ
【0008】
【発明の実施の形態】
以下、本発明のグラフにおけるグラフ表示システム1を図1を用いて詳細に説明する。ここで、図1は本発明のグラフにおけるデータ値の表示システムのブロック構成図である。
【0009】
<本発明のグラフ表示システムの構成>
本発明のグラフ表示システムは、図1に示すようにグラフデータ及び文字パラメータデータが記憶されている記憶部を有する記憶装置10と、グラフ本体の作成及びデータ値の表示のためのグラフ処理を行うグラフ作成装置20と、記憶装置10において設定されたデータを基にグラフ作成装置20において処理されたグラフを表示する表示装置30と、から構成されている。尚、本システム構成は、メモリと記憶部と、表示部他を持つ一般のパーソナルコンピュータであっても良い。
【0010】
前記記憶装置10は、作成するグラフのデータ値が保管されるグラフデータ記憶部11と、ユーザが設定するための文字のフォント,サイズ及び色のデータが保管されるパラメータ記憶部12とを備えており、前記グラフ作成装置20は、グラフ本体を作成するグラフ本体作成部21と、データ値処理部22とを有している。
【0011】
前記データ値処理部22では、以下のような処理が行われる。まず、データ値の文字列領域算出部23において、ユーザに指定された文字サイズ等の文字パラメータデータと、グラフデータ記憶部11に記憶されるグラフデータとを基に、各データ値を表示する際に必要とする文字列領域の大きさを算出する。この文字列領域とは、図2の文字列を囲む矩形領域を指す。また、図2中のA点は文字列領域の中心点、B点は上中央点、C点は左中央点、D点は下中央点、E点は右中央点であり、hは文字列領域の高さである。尚、文字列領域の1文字分の幅Wは高さの半分の長さとしている。
【0012】
次に、文字列領域位置設定部24において各データ値の文字列領域の表示位置を設定し、設定した位置を位置情報記憶部25に登録する。ここで、設定した文字列領域の表示位置が登録済の文字列領域と重なるか否かを後述の方法により検出し、重なる場合には、登録済の文字列領域と重ならないように、文字列領域を後述の方法により再設定する。このようにして、各データ値の文字列領域がそれぞれ重なり合わないように全データ値の表示位置が設定され、その設定された位置情報が位置情報記憶部25に登録される。更に、上記の如く登録された各データ値の表示位置情報を基に、文字列領域表示処理部26において、全データ値のグラフ上への表示処理が行われる。ここで、円グラフの場合は、必要に応じて引き出し線表示処理部27において引き出し線の表示処理が行われる。これらのデータ値処理が行われた後、表示装置30によって、グラフが表示される。
【0013】
<一実施形態:円グラフにおける表示処理動作>
以下、本実施形態による、円グラフにおけるデータ値の表示処理動作について図3を参照して説明する。ここで図3は円グラフにおけるデータ値の処理動作を説明するためのフローチャートである。
【0014】
まず、ユーザが設定した円グラフの半径Rと、グラフデータ記憶部11から文字列領域算出部23に送られた各要素のデータ値とから、グラフ本体作成部21にて円グラフ本体が作成される(ステップ100)。
【0015】
次に、パラメータ記憶部12に格納されている文字サイズデータから、作成された円グラフに表示するデータ値の文字サイズを指定する(ステップ101)。文字サイズデータには「大」「中」「小」の3種類の文字サイズが設定されており、ユーザはこの中から1種類の文字サイズを指定する。尚、ユーザは文字サイズのみならず、文字のフォントや色についても指定できる。ここで、ユーザが文字サイズを「大」に指定した場合、文字サイズは、文字列領域の高さhが円グラフの半径の3分の1の大きさとなるように自動的に算出される。また「中」を指定した場合には、文字列領域の高さh(図2参照)が円グラフの半径の4分の1の大きさとなるように算出され、「小」を指定した場合には、文字列領域の高さhが円グラフの半径の5分の1の大きさとなるように算出される。文字サイズが指定されていない場合には、「中」を指定した場合の文字サイズの算出処理が自動的に行われる。
【0016】
以上の処理終了後、各データ値について以下の処理を行う。まずステップ101で指定された文字列領域の高さhと文字数とからデータ値の文字列領域の面積Sが算出され(ステップ102)、この算出された面積Sを基に、後述の如くデータ値の表示位置が設定される(ステップ103)。こうして設定された表示位置は、データ値処理部22内の位置情報記憶部25に登録される(ステップ104)。しかる後に、ステップ102からステップ104までの処理によって全てのデータ値の設定表示位置が登録されたか否かを判定し(ステップ105)、登録されたと判定された場合はデータ値の表示処理が行われ、必要に応じて引き出し線の表示処理も行われる(ステップ106)。また、ステップ105において登録されていないと判定された場合は、設定表示位置未登録の各データ値について、ステップ102からステップ104までの処理が繰り返し行われる。
【0017】
ここで、前述の円グラフにおけるデータ値の表示処理動作の内、ステップ103におけるデータ値表示位置設定の処理動作について、図4を参照して説明する。図4は図中のデータ値の表示位置設定の処理動作を説明するフローチャートである。
【0018】
まず、データ値の文字列領域は、前記データ値に対応する円グラフ内の扇形領域の内部に位置設定される(ステップ110)。このステップ110における設定方法について、図5の斜線部分の場合を例にとり説明する。ここで、図5に示す如く、水平方向にx軸、原点を通りx軸と垂直な方向にy軸を設定し、また、x軸の右方向ならびにy軸の上方向を正の向きと設定する。また、ステップ100において作成された任意の円グラフの中心座標を(X,Y)とする。
【0019】
まず、斜線部分の扇形領域を二等分する角度θが算出される。ここで、θはy軸の正の部分を基準として、前記扇形領域の二等分線までの時計回り方向の角度とする。次に、該当するデータ値に対応する扇形領域の中心点の座標(X,Y)が算出される。この座標(X,Y)は、円グラフの半径をRとすると、以下の式によって算出される。
【0020】
【数1】

Figure 0003616992
【0021】
更に、該当するデータ値の文字列領域の中心点を算出し、この中心点を前記扇形領域の中心座標(X,Y)に一致させることによって、例えば図6のように、ステップ110における扇形領域内部へ表示位置が設定される。
【0022】
上記ステップ110の処理後、扇形領域と文字列領域とが重なっている部分の面積Sを算出し、得られたSと図のステップ102において算出されている文字列領域の面積Sの面積比α(ここで、α=S/S)が文字列領域算出部23において算出され(ステップ111)、しかる後に、得られた面積比αがユーザに設定されたしきい値より大きいか否か判定される(ステップ112)。ここで、前記しきい値は文字列領域を扇形領域の内部に表示するか、もしくは外部に表示するかを判別するための基準値である。
【0023】
以下に、このしきい値による判定について具体的に説明する。例えば、しきい値を0.9と設定する。ここで、前記面積比αがしきい値0.9以上の場合(データ値の文字列領域と該データ値に対応する扇形領域との重なりの面積の、前記文字列領域面積に占める割合が0.9以上の場合)は、文字列領域を扇形領域内部に表示しても、図6のように、表示されたデータ値が、他のデータ値と重なって見づらくなるという虞がないため、データ値の文字列領域設定位置は扇形領域内部に設定される。つまり、ステップ112において面積比αがしきい値以上と判定された場合(データ値の文字列領域と該データ値に対応する扇形領域との重なりの面積の、前記文字列領域面積に占める割合が大きい場合)には、データ値の文字列領域設定位置はステップ110で設定された扇形領域内部の表示位置で設定されることとなり、ステップ103におけるデータ値表示位置設定の処理動作は終了する。
【0024】
一方、前記面積比αがしきい値0.9より小さい場合(データ値の文字列領域と該データ値に対応する扇形領域との重なりの面積の、前記文字列領域面積に占める割合が0.9より小さい場合)は、文字列領域を扇形領域内部に表示しても、例えば図7のように、扇形領域内部にデータ値を表示することはできないため、データ値の文字列領域設定位置は扇形領域の外部に設定するべきであると判定される。つまり、面積比αがしきい値より小さいと判定された場合(データ値の文字列領域と該データ値に対応する扇形領域との重なりの面積の、前記文字列領域面積に占める割合が小さい場合)には、データ値の文字列領域を扇形領域の外部に表示する外部表示位置の設定処理が行われる(ステップ113)。尚、このしきい値は、ユーザのしきい値設定時に、記憶装置10内のパラメータ記憶部12に記憶される。
【0025】
<データ値の外部表示処理>
この外部表示位置の設定処理について、図8を参照して説明する。まず、内部表示処理の場合と同様に、データ値の扇形領域(図8斜線部分)を二等分する角度θが算出される。次に、引き出し線の両端の点が算出される。一端は前記扇形領域の弧の二等分点Mであり、他端は二等分点Mから半径方向に延長した延長線上の点であって、点Mとの距離が文字列領域の高さhの半分の大きさとなるような点Pである。この点Pの座標(X,Y)は次式より算出される。
【0026】
【数2】
Figure 0003616992
【0027】
更に、θの大きさを基に算出された文字列領域の点を、点P(X,Y)に一致させることによって、ステップ113の外部表示位置の設定処理が完了する。以下にこの設定処理について、図9を参照して詳細に説明する。
【0028】
まず、0°≦θ≦45°及び315°<θ≦360°の場合は、文字列領域の下中央点と点P(X,Y)とを一致させることにより、図9(a)のように外部表示位置の設定が完了する。また、45°<θ≦135°のときは、文字列領域の左中央点と点P(X,Y)とを一致させることにより、図9(b)のように外部表示位置の設定が完了する。更に、135°<θ≦225°のときは、文字列領域の上中央点と点P(X,Y)とを図9(c)の如く一致させ、225°<θ≦315°のときは、文字列領域の右中央点と点P(X,Y)とを図9(d)の如く一致させることによって外部表示位置の設定が完了する。以上のようにしてステップ113の処理は行われる。
【0029】
ここで、ステップ113の処理によって複数のデータ値が外部に表示される場合、例えば図10(a)のように、データ値が重なり合って表示されてしまう虞がある。そこでステップ113終了後、外部表示位置を設定しようとしている文字列領域が、既に外部表示位置設定済の文字列領域と重なるか否かについて判定される(ステップ114)。重ならないと判定された場合には、ステップ113で設定された外部表示位置で設定されることとなり、ステップ103におけるデータ値表示位置設定の処理動作は終了する。
【0030】
<再設定位置の算出方法>
一方、重なると判定された場合には、文字列領域の位置再設定処理を行う(ステップ115)。以下、隣り合う文字列領域が重なる場合に文字列領域の設定位置を再設定するステップ115の再設定位置算出方法について、図10を参照して説明する。まず、内部表示処理の場合と同様に、データ値の扇形領域(図10斜線部分)を二等分する角度θが算出される。次に、引き出し線の両端の点が算出される。一端は前記扇形領域の弧の二等分点Mであり、他端はこの二等分点Mから半径方向に延長した延長線上の点であって、点Mとの距離が文字列領域の高さhの半分の大きさである点Pである。この点Pの座標(X,Y)は次式より算出される。
【0031】
【数3】
Figure 0003616992
【0032】
更に、ステップ113の外部初期位置設定処理の場合と同様、θを基に算出された文字列領域の点を点P(X,Y)に一致させる。この処理の後、外部表示位置を再設定しようとしている文字列領域が、既に外部表示位置設定済の文字列領域と重なるか否かについて判定され(ステップ114)、重ならないと判定された場合には、ステップ115で再設定された外部表示位置で設定されることとなり、ステップ103におけるデータ値表示位置設定の処理動作は終了する。
【0033】
一方、1度の再設定位置算出処理で重なりが解消できない場合は、更に文字サイズの高さの半分の長さ分だけ延長した引き出し線の終点座標を再設定し(ステップ108)、重なり部分判定処理を行う(ステップ107)。以上の処理を、ステップ114において重ならないと判定されるまで繰り返し行い、重ならないと判定されると、ステップ103におけるデータ値表示位置設定の処理動作は終了する。ここで、再設定位置算出処理をN回行って得られた再設定位置の座標(X,Y)は、円グラフの半径R及び文字列領域の高さhを用いて次式で与えられる。
【0034】
【数4】
Figure 0003616992
【0035】
以上のようなデータ値の表示位置設定処理が全データ値に対して行われ、全データ値の表示位置が登録された後、データ値及び引き出し線の表示処理が行われて(ステップ106)、円グラフにおけるデータ値表示処理動作は完了する。
【0036】
<ドーナツ状グラフにおける表示処理動作>
本発明は、上述した円グラフにおけるデータ値表示処理動作を若干変更することにより、図11に示すようなドーナツ状グラフについても適用することができ。以下にこのドーナツ状グラフにおけるデータ値表示処理動作について説明する。ドーナツ状グラフに適用する場合には、ステップ110において、データ値に対応するグラフ領域(図11斜線部分)内部の表示位置の座標(X,Y)を求める式を次式にすると共に、ステップ112において用いられるしきい値の設定の際に、円グラフの場合より小さい値に設定する必要がある。その他の処理については円グラフにおける表示処理動作と同様に行うことにより、ドーナツ状グラフにおけるデータ値表示処理が行える。尚、図11における前記グラフ領域(斜線部分)を二等分する角度をθ、ドーナツ状グラフ本体における外円の半径をR、内円の半径をrとする。
【0037】
【数5】
Figure 0003616992
【0038】
<第二実施形態:棒グラフにおける表示処理動作>
以上のように、本発明は円グラフ及びドーナツ状グラフの表示処理に適用できるが、本発明の第二実施形態として、図12のように棒グラフにデータ値を表示する際にも適用できる。棒グラフにおけるデータ値表示処理について、以下、図13のフローチャートを参照して説明する。図13は棒グラフにおけるデータ値の処理動作を説明するフローチャートである。尚、図12中のHは棒グラフの高さを示す。
【0039】
まず、円グラフの場合と同様、グラフデータファイル11から文字列領域の算出部23に送られた各要素のデータ値より、グラフ本体作成部21にて棒グラフ本体の作成が行われる(ステップ200)。
【0040】
次に、パラメータ記憶部12に格納されている文字サイズデータから、作成された棒グラフに表示するデータ値の文字サイズを指定する(ステップ201)。文字サイズデータには「大」「中」「小」の3種類の文字サイズが設定されており、ユーザはこの中から1種類の文字サイズを指定する。尚、ユーザは文字サイズのみならず、文字のフォントや色についても指定できる。ここで、ユーザが文字サイズを「大」に指定した場合には、文字サイズは、文字列領域の高さhが棒グラフの高さHの6分の1の大きさとなるように自動的に算出される。また「中」を指定した場合には、文字列領域の高さhが棒グラフの高さHの8分の1の大きさとなるように算出され、「小」を指定した場合には、文字列領域の高さhが棒グラフの高さHの10分の1の大きさになるように算出される。文字サイズが指定されていない場合には、「中」を指定した場合の文字サイズの算出処理が自動的に行われる。
【0041】
以上の処理終了後、各データ値について以下の処理を行う。まずステップ201で指定された文字列領域の高さhと文字数とからデータ値の文字列領域の面積Sが算出され(ステップ202)、文字列領域の表示位置の設定が行われる(ステップ203)。
【0042】
この設定位置の算出方法については、図14の斜線部分の場合を例にとり説明する。ここで、図14に示す如く、水平方向にx軸、原点を通りx軸と垂直な方向にy軸を設定し、また、x軸の右方向ならびにy軸の上方向を正の向きと設定する。また、ステップ200で作成された棒グラフの、一番左の棒の左下端を原点(0,0)とする。
【0043】
まず、図14(a)における任意の斜線部分の棒グラフ矩形領域の上中央点の座標(X,Y)を算出し、図14(b)に示すデータ値の文字列領域の下中央点をこの座標(X,Y)に一致させることにより、図14(c)のように棒グラフにおける表示位置設定処理が完了する。
【0044】
以上のようにして、各データ値の表示位置を設定した場合、図15のように複数の文字列領域が重なりあい、その結果データ値が重なり合って表示されてしまう虞がある。そこで、ステップ203終了後、表示位置を設定しようとしている文字列領域が、既に表示位置設定済の文字列領域と重なるか否かについて判定される(ステップ204)。ステップ204において重ならないと判定された場合には、位置設定された位置が位置情報記憶部25に登録される(ステップ206)。
一方、ステップ204において重なると判定された場合には文字列領域の位置再設定処理が行われる(ステップ205)。
【0045】
<再設定位置の算出方法>
ここで、ステップ205におけるデータ値表示位置の再設定処理動作について説明する。まず1回目の再設定位置算出を行う場合、図15のように任意の位置再設定の対象の棒グラフ矩形領域における上中央点の座標(X,Y)から、文字サイズの高さの半分の長さ分だけy軸の正方向に平行移動させた点の座標(XB1,YB1)を算出し、この座標(XB1,YB1)の点に文字列領域の下中央点を一致させる。しかる後にステップ204の判定処理を行い、この結果、文字列領域が重ならないと判定された場合は、再設定された位置が位置情報記憶部25に記憶される(ステップ206)。
【0046】
一方、1回目の再設定位置算出処理で重なりが解消できない場合は、文字サイズの高さの半分の長さ分だけ更にy軸の正方向に平行移動させた点の座標を再設定し(ステップ205)、重なり部分判定処理を行う(ステップ204)。以上の処理を、ステップ205において重ならないと判定されるまで繰り返し行い、重ならないと判定されると、その位置が位置情報記憶部25に登録される(ステップ206)。ここで、本処理をN回行って得られた再設定位置の座標(XBN,YBN)は次式で与えられる。
【0047】
【数6】
Figure 0003616992
【0048】
以上のようなデータ値の表示位置設定処理が全データ値に対して行われ、全データ値の表示位置が登録された後、データ値及び引き出し線の表示処理が行われて(ステップ208)、棒グラフにおけるデータ値表示処理動作は完了する。
【0049】
<第三実施形態:折れ線グラフにおける表示処理動作>
以上のように、本発明は円グラフ,ドーナツグラフ及び棒グラフにおける文字列領域の表示に適用できるが、第三実施形態として、図16のような折れ線グラフにも適用できる。以下、折れ線グラフにおけるデータ値の表示処理について図17のフローチャートを参照して説明する。ここで、図17は折れ線グラフにおけるデータ値の処理動作を説明するフローチャートである。尚、図16中のHは折れ線グラフの高さを示す。
【0050】
まず、円グラフや棒グラフの場合と同様、グラフデータ記憶部11から文字列領域算出部23に送られた各要素のデータ値とから、グラフ本体作成部21にて折れ線グラフ本体の作成が行われ(ステップ300)、続いて、前記折れ線グラフの各データ値の座標から、隣り合うデータ値を結ぶ全ての直線について傾きが算出される(ステップ301)。
【0051】
次に、パラメータ記憶部12に格納されている文字サイズデータから、前記折れ線グラフに表示するデータ値の文字サイズを指定する(ステップ302)。この文字サイズの算出方法は、棒グラフにおける算出方法と同様であり、この処理によって文字列領域の高さhが算出される。
【0052】
以上の処理終了後、各データ値について以下の処理を行う。まずステップ302で指定された文字列領域の高さhと文字数とからデータ値の文字列領域の面積Sが算出され(ステップ303)、しかる後に、折れ線グラフにおける各データ値文字列領域の表示位置設定処理が行われる(ステップ304)。ステップ304の処理後、円グラフ等の場合と同様に設定位置判定が行われ(ステップ305)、ステップ305の判定結果によっては表示位置再設定処理が行われる(ステップ306)。
【0053】
ここで、上記の表示位置及び再設定位置の算出方法が、各データ値の左右の直線の傾きの組み合わせによって異なるので、この点について以下に説明する。尚、折れ線グラフの任意のデータ値の座標を(X,Y)とし、この座標の左側の折れ線の傾きをΔL、右側の折れ線の傾きをΔRとする。
【0054】
<パターン1:0≦ΔL<1かつ0≦ΔR<1、または−1<ΔL≦0かつ−1<ΔR≦0である場合>
まず図18のような、0≦ΔL<1かつ0≦ΔR<1、または−1<ΔL≦0かつ−1<ΔR≦0である場合(以下、パターン1という)について説明する。パターン1では、データ値の座標(X,Y)に文字列領域の下中央点を一致させることで表示位置の設定が行われる。
【0055】
また、パターン1における表示位置再設定処理は、図18のように行われる。まず、1回目の表示位置再設定処理では、データ値の座標(X,Y)に文字列領域の上中央点を図18(b)のように一致させる。ここで、ステップ305の設定位置判定が行われ、重なりが回避されていないと判定された場合は、2回目の再設定処理が行われる。この2回目の再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけy軸の正の方向に平行移動した座標(XL2,YL2)に、文字列領域の下中央点を図18(c)のように一致させる。この処理終了後、再びステップ305の設定位置判定が行われ、重なりが回避されていないと判定された場合は、更に3回目の再設定処理が行われる。この3回目の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけy軸の負の方向に平行移動した座標(XL3,YL3)に、文字列領域の上中央点を図18(d)のように一致させる。
【0056】
このように、パターン1のデータ値に対して再設定処理をN回行う場合、下記の如く場合分けができる。まず、再設定処理回数が奇数回(N=2n+1,n=0,1,2,…)のときは、データ値の座標から文字サイズの高さの半分のn倍分の長さだけy軸の負の方向に平行移動した座標に文字列領域の上中央点を一致させるように位置設定する。また、再設定処理回数が偶数回(N=2n,n=1,2,…)のときは、データ値の座標から文字サイズの高さの半分のn倍分の長さだけy軸の正の方向に平行移動した座標に文字列領域の下中央点を一致させるように位置設定する。これを繰り返して重なりが回避されるまで位置の再設定処理が行われる。
【0057】
<パターン2:0<ΔLかつΔR<0である場合>
次に、図19のような、0<ΔLかつΔR<0である場合(以下、パターン2という)について説明する。パターン2では、データ値の座標(X,Y)に文字列領域の下中央点を一致させることで表示位置の設定が行われる。
【0058】
また、パターン2における位置再設定処理は図19のように行われる。まず、1回目の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけy軸の正の方向に平行移動した座標(XL1,YL1)に、文字列領域の下中央点を図19(b)のように一致させる。よって、重なりを回避するために、パターン2のデータ値に対してこの処理をN回行うとすると、データ値の座標から文字サイズの高さの半分のN倍分の長さだけy軸の正の方向に平行移動した座標に文字列領域の下中央点を一致させるように位置設定することとなる。
【0059】
ここで、上記パターン2における表示位置及び再設定位置の算出方法は、図20の如く、1≦ΔLかつ0≦ΔR<1、または−1<ΔL≦0かつΔR≦−1である場合についても成立する。更に、この表示方法はグラフの両端に表示する際にも適用され、図21に示す如く、折れ線グラフ左端においてΔR≦0である場合、もしくは折れ線グラフ右端において0≦ΔLである場合にも適用できる。
【0060】
<パターン3:ΔL<0かつ0<ΔRである場合>
次に、図22の如く、ΔL<0かつ0<ΔRである場合(以下、パターン3という)について説明する。パターン3では、データ値の座標(X,Y)に文字列領域の上中央点を一致させることで表示位置の設定が行われる。
【0061】
また、パターン3における位置再設定処理は図22のように行われる。まず、1回の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけy軸の負の方向に平行移動した座標(XL1,YL1)に、文字列領域の上中央点を図22(b)のように一致させるように位置設定する。よって、重なりを回避するために、この処理をパターン3のデータ値に対してN回行うとすると、データ値の座標から文字サイズの高さの半分のN倍分の長さだけy軸の負の方向に平行移動した座標に文字列領域の上中央点を一致させるように位置設定することとなる。
【0062】
ここで、上記パターン3における表示位置及び再設定位置の算出方法は、図23の如く、0≦ΔL<1かつ1≦ΔR、またはΔL≦−1かつ−1<ΔR≦0である場合についても成立する。更に、この表示位置算出方法はグラフの両端に表示する際にも適用され、図24に示す如く、折れ線グラフ左端において0<ΔRである場合、もしくは折れ線グラフ右端においてΔL<0である場合に適用される。
【0063】
<パターン4:1≦ΔLかつ1≦ΔRである場合>
次に、図25の如く、1≦ΔLかつ1≦ΔRである場合(以下、パターン4という)について説明する。パターン4では、データ値の座標(X,Y)に文字列領域の右下点を一致させることで表示位置の設定が行われる。
【0064】
また、パターン4における位置再設定処理は図25のように行われる。まず、1回目の位置再設定処理では、データ値の座標(X,Y)に文字列領域の左上点を図25(b)のように一致させる。2回目の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけ左上45°方向に平行移動した座標(XL2,YL2)に、文字列領域の右下点を図25(c)のように一致させるよう位置設定する。3回目の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけ右下45°方向に平行移動した座標(XL3,YL3)に、文字列領域の左上点を図25(d)のように一致させるよう位置設定する。
【0065】
以上の再設定処理をN回行う場合、下記の如く場合分けができる。まず、再設定処理回数が奇数回(N=2n+1,n=0,1,2,…)のとき、データ値の座標(X,Y)から文字サイズの高さの半分のn倍分の長さだけ右下45°方向に平行移動した座標(XLNO,YLNO)に、文字列領域の左上点を一致させるよう位置設定する。
【0066】
【数7】
Figure 0003616992
【0067】
また、再設定処理回数が偶数回(N=2n,n=1,2,…)のとき、データ値の座標(X,Y)から文字サイズの高さの半分のn倍分の長さだけ左上45°方向に平行移動した座標(XLNE,YLNE)に文字列領域の右下点を一致させるよう位置設定する。これを繰り返して重なりが回避されるまで位置の再設定が行われる。
【0068】
【数8】
Figure 0003616992
【0069】
<パターン5:ΔL≦−1かつΔR≦−1である場合>
次に、図26の如く、ΔL≦−1かつΔR≦−1である場合(以下、パターン5という)について説明する。パターン5では、データ値の座標(X,Y)に文字列領域の左下点を一致させることで表示位置の設定が行われる。
【0070】
また、パターン5における再設定処理は図26のように行われる。まず、1回目の位置再設定処理では、データ値の座標(X,Y)に文字列領域の右上点を図26(b)のように一致させる。2回目の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけ右上45°方向に平行移動した座標(XL2,YL2)に、文字列領域の左下点を図26(c)のように一致させるよう位置設定する。3回目の位置再設定処理では、データ値の座標(X,Y)から文字サイズの高さの半分の長さ分だけ左下45°方向に平行移動した座標(XL3,YL3)に、文字列領域の右上点を図26(d)のように一致させるよう位置設定する。
【0071】
以上の再設定処理をN回行う場合、下記の如く場合分けができる。まず、Nが奇数(N=2n+1,n=0,1,2,…)の場合、データ値の座標(X,Y)から文字サイズの高さの半分のn倍分の長さだけ左下45°方向に平行移動した座標(XLNO,YLNO)に文字列領域の右上点を一致させるよう位置設定する。
【0072】
【数9】
Figure 0003616992
【0073】
また、Nが偶数(N=2n,n=1,2,…)の場合、データ値の座標(X,Y)から文字サイズの高さの半分のn倍分の長さだけ右上45°方向に平行移動した座標(XLNE,YLNE)に文字列領域の左下点を一致させるよう位置設定する。これを繰り返して重なりが回避されるまで位置の再設定が行われる。
【0074】
【数10】
Figure 0003616992
【0075】
以上のようなデータ値の表示位置設定処理が全データ値に対して行われ、全データ値の表示位置が登録された後、データ値の表示処理が行われて(ステップ309)、折れ線グラフにおけるデータ値表示処理動作は完了する。
【0076】
ここで、上述の如く種々のグラフのデータ値表示処理動作及びこの表示処理動作を実行してデータ値を表示するグラフ表示システムについて説明したが、この表示処理動作を実行する手段としては、上記のグラフ表示システムに限ったことではなく、本発明の表示処理動作を行うプログラムを作成し、このプログラムに基づいて表示処理動作を実行させるようにしても良い。このプログラムは、具体的には、コンピュータに、グラフデータに基づきグラフ本体を作成させる機能と、前記グラフデータと文字パラメータデータとに基づき各データ値を表示する際に必要とする文字列領域の大きさを算出させる機能と、各データ値の文字列領域の表示位置を設定及び再設定させる機能と、その設定した位置の位置情報を記憶部に登録させる機能と、その登録された各データ値の表示位置情報に基づき、全データ値に対してグラフ上への表示処理を行わせる機能とを実現させるためのものである。また必要に応じて、登録された全データの表示位置情報に基づき、グラフと文字列領域とを結ぶ引き出し線を表示するための引き出し線表示処理を行わせる機能をも実現させるようにすることもできる。
【0077】
【発明の効果】
以上述べたように、本発明によれば、種々のグラフを作成する際、文字サイズを変更したり、データ値の表示位置を手動で調整することなく、相互のデータ値の重なりが自動的に回避され、各データ値をグラフに直接表示することができるため、見やすいグラフが自動的に作成される。
【図面の簡単な説明】
【図1】本発明のグラフ表示システムのブロック構成図である。
【図2】本発明における文字列領域を説明するための図である。
【図3】本発明の第一実施形態の円グラフにおけるデータ値の表示処理動作を説明するフローチャートである。
【図4】図3におけるデータ値の表示位置設定の処理動作を説明するフローチャートである。
【図5】第一実施形態における円グラフの扇形領域内部に文字列領域を位置設定する処理動作を説明するための図である。
【図6】第一実施形態における扇形領域内部へ文字列領域を位置設定した状態を示す図である。
【図7】第一実施形態における扇形領域内部へ文字列領域を位置設定できない状態を示す図である。
【図8】第一実施形態における扇形領域外部へ文字列領域を位置設定する処理動作を説明するための図である。
【図9】第一実施形態における扇形領域外部へ文字列領域を位置設定した状態を説明するための図である。
【図10】第一実施形態における扇形領域外部で文字列領域の位置を再設定する処理動作を説明するための図である。
【図11】ドーナツ状グラフに文字列領域を位置設定する処理動作を説明するための図である。
【図12】本発明の第二実施形態の棒グラフの一例を示す図である。
【図13】第二実施形態の棒グラフにおけるデータ値の表示処理動作を説明するフローチャートである。
【図14】第二実施形態の棒グラフに文字列領域を位置設定する処理動作を説明するための図である。
【図15】第二実施形態の棒グラフにおいて文字列領域の位置を再設定する処理動作を説明するための図である。
【図16】本発明の第三実施形態の折れ線グラフの一例を示す図である。
【図17】第三実施形態の折れ線グラフにおけるデータ値の表示処理動作を説明するフローチャートである。
【図18】第三実施形態のパターン1における表示位置設定動作を説明するための図である。
【図19】第三実施形態のパターン2における表示位置設定動作を説明するための図である。
【図20】第三実施形態のパターン2における表示位置設定動作を説明するための図である。
【図21】第三実施形態のパターン2における表示位置設定動作を説明するための図である。
【図22】第三実施形態のパターン3における表示位置設定動作を説明するための図である。
【図23】第三実施形態のパターン3における表示位置設定動作を説明するための図である。
【図24】第三実施形態のパターン3における表示位置設定動作を説明するための図である。
【図25】第三実施形態のパターン4における表示位置設定動作を説明するための図である。
【図26】第三実施形態のパターン5における表示位置設定動作を説明するための図である。
【符号の説明】
1…グラフ表示システム、10…記憶装置、11…グラフデータ記憶部、12…パラメータ記憶部、20…グラフ作成装置、21…グラフ本体作成部、22…データ値処理部、23…文字列領域算出部、24…文字列領域位置設定部、25…位置情報記憶部、26…文字列領域表示処理部、27…引き出し線表示処理部、30…表示装置。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a graph display system and a data value display processing program for automatically arranging data values in a graph so that the data values do not overlap each other in creating a graph.
[0002]
[Prior art]
In a system for automatically displaying data values on a graph, for example, as described in Japanese Patent Application Laid-Open No. 11-282931, the scale of the axis and the position corresponding to the scale are relative to the data to be graphed. Some automatically attach numeric labels.
[0003]
[Problems to be solved by the invention]
However, in the prior art, when the data value is directly displayed on the pie chart or the bar graph, the data value character string areas may overlap each other because the interval between the character string areas of the adjacent data values is narrow, In order to avoid this overlap, the character size must be reduced and displayed again, or the position of the character string area of the data value must be adjusted manually, which is inconvenient for graph creation. was there.
[0004]
An object of the present invention is to automatically avoid overlapping of data value character string areas without changing the character size when displaying the data value of each element in the graph, and to display each data value Display systemAnd its data value display processing programIs to provide.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, in the graph display system according to the first aspect of the present invention, a graph is created based on a storage device having a storage unit for storing graph data and character parameter data, and data stored in the storage device. And a graph display system comprising a graph creation device that performs processing for data value display, and a display device that displays the graph created by the graph creation device, wherein the graph creation device creates a graph body A creation unit, a character string region calculation unit that calculates the size of a character string region necessary for data value display, and a character string region that sets a display position of the character string region calculated by the character string region calculation unit A position setting unit, a position information registration unit for registering information related to the position set by the character string region position setting unit, and all of the positions registered in the position information registration unit Based on the display position information of the over data value, a character string region display processing unit that performs display processing of a character string regionAnd comprising
When creating a pie chart or a donut chart, the character string area position setting unit displays the character string area of the data value to be displayed within the pie chart or donut chart. Calculate the area where the area and the sector area overlap and calculate the ratio of the area obtained here to the area of the character string area, and check whether the calculated ratio is greater than the threshold value. Determines whether to display the character string area of the data value to be displayed based on the determination result inside or outside the pie chart or donut chart, and displays the character string area of each data value Set and reset position.In the graph display system according to the invention of claim 2, the graph creating device in the display system includes:The character string region and the graph are connected to the character string region of the data value determined to be displayed outside the pie graph or the donut graph by the character string region position setting unit.The graph creating apparatus includes a leader line display processing unit that performs a leader line display process.
[0007]
Claim3In the data value display processing program according to the present invention, when creating a pie chart or a donut-shaped chart, the function of causing the computer to create a graph body based on the graph data, and each data based on the graph data and the character parameter data Display value
The function to calculate the size of the character string area required at the time, the character string area of the data value to be displayed is displayed inside the pie chart or donut chart, Calculate the area of the overlapping area and calculate the ratio of the area obtained here to the area of the character string area, determine whether the calculated ratio is greater than the threshold, and determine Based on the result, decide whether to display the character string area of the data value to be displayed inside or outside the pie chart or donut chart, and set and redisplay the display position of the character area of each data value A function to set, a function to register the position information of the set position in the storage unit, and display processing on the graph for all data values based on the display position information of each registered data value Machine To realize the door.
And claims4In the data value display processing program according to the invention, in the display processing program, in the character string area of the data value determined to be displayed outside the pie chart or the donut-shaped graph based on the display position information of all the registered data. On the other hand, a function for performing a leader line display process for displaying a leader line connecting the character string area and the graph is realized.Ru.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, the graph display system 1 in the graph of this invention is demonstrated in detail using FIG. Here, FIG. 1 is a block diagram of a data value display system in the graph of the present invention.
[0009]
<Configuration of Graph Display System of the Present Invention>
As shown in FIG. 1, the graph display system of the present invention performs a graph processing for creating a graph body and displaying a data value, with a storage device 10 having a storage unit storing graph data and character parameter data. The graph creation device 20 includes a display device 30 that displays a graph processed by the graph creation device 20 based on data set in the storage device 10. The system configuration may be a general personal computer having a memory, a storage unit, a display unit, and the like.
[0010]
The storage device 10 includes a graph data storage unit 11 that stores data values of a graph to be created, and a parameter storage unit 12 that stores character font, size, and color data for setting by a user. The graph creation device 20 includes a graph body creation unit 21 that creates a graph body and a data value processing unit 22.
[0011]
The data value processing unit 22 performs the following processing. First, when displaying each data value based on the character parameter data such as the character size designated by the user and the graph data stored in the graph data storage unit 11 in the character string area calculation unit 23 of the data value. Calculate the size of the character string area required for. This character string area refers to a rectangular area surrounding the character string in FIG. In FIG. 2, point A is the center point of the character string area, point B is the upper center point, point C is the left center point, point D is the lower center point, point E is the right center point, and h is the character string. The height of the area. The width W for one character in the character string area is half the height.
[0012]
Next, the character string area position setting unit 24 sets the display position of the character string area of each data value, and registers the set position in the position information storage unit 25. Here, whether or not the display position of the set character string area overlaps with the registered character string area is detected by the method described later, and if it overlaps, the character string is not overlapped with the registered character string area. The area is reset by the method described later. In this way, the display positions of all the data values are set so that the character string regions of the respective data values do not overlap with each other, and the set position information is registered in the position information storage unit 25. Further, based on the display position information of each data value registered as described above, the character string region display processing unit 26 performs a display process on the graph of all data values. In the case of a pie chart, the leader line display processing unit 27 performs a leader line display process as necessary. After these data value processes are performed, the display device 30 displays a graph.
[0013]
<One Embodiment: Display Processing Operation in Pie Chart>
Hereinafter, the display processing operation of the data value in the pie chart according to the present embodiment will be described with reference to FIG. FIG. 3 is a flowchart for explaining the data value processing operation in the pie chart.
[0014]
First, a pie graph body is created by the graph body creation unit 21 from the radius R of the pie graph set by the user and the data value of each element sent from the graph data storage unit 11 to the character string area calculation unit 23. (Step 100).
[0015]
Next, the character size of the data value to be displayed on the created pie chart is designated from the character size data stored in the parameter storage unit 12 (step 101). Three types of character sizes “large”, “medium”, and “small” are set in the character size data, and the user designates one type of character size from these. The user can specify not only the character size but also the font and color of the character. Here, when the user designates the character size as “large”, the character size is automatically calculated such that the height h of the character string region is one third of the radius of the pie chart. When “middle” is designated, the height h (see FIG. 2) of the character string area is calculated to be a quarter of the radius of the pie chart, and when “small” is designated. Is calculated so that the height h of the character string area is one fifth of the radius of the pie chart. When the character size is not specified, the character size calculation process when “medium” is specified is automatically performed.
[0016]
After the above processing is completed, the following processing is performed for each data value. First, the area S of the character string area of the data value is calculated from the height h and the number of characters specified in step 101 (step 102), and based on the calculated area S, the data value as described later is calculated. Is set (step 103). The display position set in this way is registered in the position information storage unit 25 in the data value processing unit 22 (step 104). Thereafter, it is determined whether or not the setting display positions of all the data values have been registered by the processing from step 102 to step 104 (step 105). If it is determined that they have been registered, the data value display processing is performed. A lead line display process is also performed as necessary (step 106). If it is determined in step 105 that the data is not registered, the processing from step 102 to step 104 is repeatedly performed for each data value that is not registered in the setting display position.
[0017]
Here, the data value display position setting processing operation in step 103 among the data value display processing operations in the aforementioned pie chart will be described with reference to FIG. FIG. 4 is a flowchart for explaining the processing operation for setting the display position of the data value in the figure.
[0018]
First, the character string area of the data value is set within the sector area in the pie chart corresponding to the data value (step 110). The setting method in step 110 will be described taking the case of the shaded portion in FIG. 5 as an example. Here, as shown in FIG. 5, the x axis is set in the horizontal direction, the y axis is set in the direction passing through the origin and perpendicular to the x axis, and the right direction of the x axis and the upward direction of the y axis are set as positive directions. To do. In addition, the center coordinates of the arbitrary pie chart created in step 100 are expressed as (XC, YC).
[0019]
First, the angle θ that bisects the shaded area1Is calculated. Where θ1Is the angle in the clockwise direction up to the bisector of the sectoral area, with the positive part of the y-axis as the reference. Next, the coordinates of the center point of the sector area corresponding to the corresponding data value (X1, Y1) Is calculated. This coordinate (X1, Y1) Is calculated by the following equation, where R is the radius of the pie chart.
[0020]
[Expression 1]
Figure 0003616992
[0021]
Further, the center point of the character string region of the corresponding data value is calculated, and this center point is determined as the center coordinate (X1, Y1), The display position is set inside the sector area in step 110, for example, as shown in FIG.
[0022]
After the processing of step 110, the area S of the portion where the sector area and the character string area overlap.1And S obtained1And the area ratio α of the area S of the character string region calculated in step 102 in the figure (where α = S1/ S) is calculated by the character string area calculation unit 23 (step 111), and thereafter, it is determined whether or not the obtained area ratio α is larger than a threshold value set by the user (step 112). Here, the threshold value is a reference value for determining whether the character string area is displayed inside the sector area or externally.
[0023]
Hereinafter, the determination based on the threshold value will be described in detail. For example, the threshold value is set to 0.9. Here, when the area ratio α is equal to or greater than the threshold value 0.9 (the ratio of the overlapping area between the character string region of the data value and the fan-shaped region corresponding to the data value to the character string region area is 0) .9 or more), even if the character string area is displayed inside the sector area, the displayed data value is not likely to overlap with other data values as shown in FIG. The character string area setting position of the value is set inside the sector area. In other words, when it is determined in step 112 that the area ratio α is equal to or greater than the threshold value (the ratio of the overlapping area between the character string region of the data value and the sector region corresponding to the data value to the character string region area) If it is larger), the character string area setting position of the data value is set at the display position inside the sector area set in step 110, and the processing operation of the data value display position setting in step 103 is ended.
[0024]
On the other hand, when the area ratio α is smaller than the threshold value 0.9 (the ratio of the overlapping area between the character string region of the data value and the sector region corresponding to the data value to the character string region area is 0. If the character string area is displayed inside the sector area, the data value cannot be displayed inside the sector area, for example, as shown in FIG. It is determined that it should be set outside the sector area. That is, when it is determined that the area ratio α is smaller than the threshold value (when the ratio of the overlapping area between the character string region of the data value and the sector region corresponding to the data value to the character string region area is small) ), An external display position setting process for displaying the character string area of the data value outside the sector area is performed (step 113). This threshold value is stored in the parameter storage unit 12 in the storage device 10 when the user sets a threshold value.
[0025]
<External display processing of data values>
This external display position setting process will be described with reference to FIG. First, as in the case of the internal display processing, the angle θ that bisects the sectoral area of the data value (shaded area in FIG. 8).2Is calculated. Next, the points at both ends of the leader line are calculated. One end is the bisection point M of the arc of the sector region.2And the other end is a bisection point M2A point on the extension line extending radially from the point M2A point P such that the distance to the character string is half the height h of the character string area2It is. This point P2Coordinates (X2, Y2) Is calculated from the following equation.
[0026]
[Expression 2]
Figure 0003616992
[0027]
Furthermore, θ2The point of the character string area calculated based on the size of2(X2, Y2), The external display position setting process in step 113 is completed. This setting process will be described in detail below with reference to FIG.
[0028]
First, 0 ° ≦ θ2≦ 45 ° and 315 ° <θ2If ≦ 360 °, the lower center point of the character string area and the point P2(X2, Y2), The setting of the external display position is completed as shown in FIG. 45 ° <θ2When ≦ 135 °, left center point and point P of the character string area2(X2, Y2), The setting of the external display position is completed as shown in FIG. Furthermore, 135 ° <θ2When ≦ 225 °, the upper center point of the character string area and the point P2(X2, Y2) And 225 ° <θ as shown in FIG.2When ≦ 315 °, right center point and point P of the character string area2(X2, Y2) To match with each other as shown in FIG. 9D, the setting of the external display position is completed. The process of step 113 is performed as described above.
[0029]
Here, when a plurality of data values are displayed outside by the process of step 113, there is a possibility that the data values are displayed overlapping each other as shown in FIG. 10A, for example. Therefore, after step 113 is completed, it is determined whether or not the character string region for which the external display position is to be set overlaps with the character string region for which the external display position has already been set (step 114). If it is determined that they do not overlap, the external display position set in step 113 is set, and the data value display position setting processing operation in step 103 ends.
[0030]
<Calculation method of reset position>
On the other hand, if it is determined that they overlap, a character string region position resetting process is performed (step 115). Hereinafter, the reset position calculation method in step 115 for resetting the set position of the character string area when adjacent character string areas overlap will be described with reference to FIG. First, as in the case of the internal display processing, the angle θ that bisects the sector area (shaded portion in FIG. 10) of the data value.3Is calculated. Next, the points at both ends of the leader line are calculated. One end is the bisection point M of the arc of the sector region.3The other end is this bisection point M3A point on the extension line extending radially from the point M3The point P where the distance to is half the height h of the character string area3It is. This point P3Coordinates (X3, Y3) Is calculated from the following equation.
[0031]
[Equation 3]
Figure 0003616992
[0032]
Further, as in the case of the external initial position setting process in step 113, θ3The point of the character string area calculated based on3(X3, Y3) To match. After this processing, it is determined whether or not the character string area whose external display position is to be reset overlaps with the character string area whose external display position has already been set (step 114). Is set at the external display position reset at step 115, and the data value display position setting processing operation at step 103 ends.
[0033]
On the other hand, if the overlap cannot be resolved by the reset position calculation process once, the end point coordinates of the leader line extended by half the height of the character size are reset (step 108), and the overlapping portion is determined. Processing is performed (step 107). The above processing is repeated until it is determined in step 114 that they do not overlap. If it is determined that they do not overlap, the processing operation for setting the data value display position in step 103 ends. Here, the coordinates of the reset position obtained by performing the reset position calculation process N times (XN, YN) Is given by the following equation using the radius R of the pie chart and the height h of the character string region.
[0034]
[Expression 4]
Figure 0003616992
[0035]
The display position setting process for data values as described above is performed for all data values, and after the display positions for all data values are registered, the display process for data values and lead lines is performed (step 106). The data value display processing operation in the pie chart is completed.
[0036]
<Display processing operation in donut graph>
The present invention can be applied to a donut-shaped graph as shown in FIG. 11 by slightly changing the data value display processing operation in the above-described pie graph. The data value display processing operation in this donut graph will be described below. In the case of applying to a donut-shaped graph, in step 110, the coordinates of the display position (XD, YD) Is set to the following formula, and when the threshold value used in step 112 is set, it is necessary to set a smaller value than in the case of the pie chart. By performing the other processing in the same manner as the display processing operation in the pie chart, the data value display processing in the donut graph can be performed. Note that the angle that bisects the graph area (shaded portion) in FIG.4The radius of the outer circle in the donut-shaped graph body is R, and the radius of the inner circle is r.
[0037]
[Equation 5]
Figure 0003616992
[0038]
<Second Embodiment: Display Processing Operation in Bar Graph>
As described above, the present invention can be applied to display processing of a pie chart and a donut-shaped graph, but as a second embodiment of the present invention, it can also be applied to display data values on a bar graph as shown in FIG. The data value display processing in the bar graph will be described below with reference to the flowchart of FIG. FIG. 13 is a flowchart for explaining the data value processing operation in the bar graph. Note that H in FIG. 12 indicates the height of the bar graph.
[0039]
First, as in the case of a pie chart, a bar graph body is created by the graph body creation unit 21 from the data values of each element sent from the graph data file 11 to the character string area calculation unit 23 (step 200). .
[0040]
Next, the character size of the data value to be displayed on the created bar graph is designated from the character size data stored in the parameter storage unit 12 (step 201). Three types of character sizes “large”, “medium”, and “small” are set in the character size data, and the user designates one type of character size from these. The user can specify not only the character size but also the font and color of the character. Here, when the user designates the character size as “large”, the character size is automatically calculated so that the height h of the character string area is one sixth of the height H of the bar graph. Is done. When “middle” is designated, the height h of the character string area is calculated to be one eighth of the height H of the bar graph. When “small” is designated, the character string is calculated. The height h of the region is calculated so as to be 1/10 of the height H of the bar graph. When the character size is not specified, the character size calculation process when “medium” is specified is automatically performed.
[0041]
After the above processing is completed, the following processing is performed for each data value. First, the area S of the character string region of the data value is calculated from the height h and the number of characters specified in step 201 (step 202), and the display position of the character string region is set (step 203). .
[0042]
This setting position calculation method will be described by taking the case of the shaded portion in FIG. Here, as shown in FIG. 14, the x axis is set in the horizontal direction, the y axis is set in the direction passing through the origin and perpendicular to the x axis, and the right direction of the x axis and the upward direction of the y axis are set as positive directions. To do. Further, the lower left end of the leftmost bar of the bar graph created in step 200 is set as the origin (0, 0).
[0043]
First, the coordinates of the upper center point (XB, YB) And the lower center point of the character string area of the data value shown in FIG.B, YB), The display position setting process in the bar graph is completed as shown in FIG.
[0044]
When the display position of each data value is set as described above, a plurality of character string regions overlap as shown in FIG. 15, and as a result, the data values may overlap and be displayed. Therefore, after step 203 is finished, it is determined whether or not the character string region whose display position is to be set overlaps with the character string region whose display position has already been set (step 204). If it is determined in step 204 that they do not overlap, the set position is registered in the position information storage unit 25 (step 206).
On the other hand, if it is determined in step 204 that they overlap, a character string region position resetting process is performed (step 205).
[0045]
<Calculation method of reset position>
Here, the operation of resetting the data value display position in step 205 will be described. First, when the reset position calculation is performed for the first time, as shown in FIG. 15, the coordinates of the upper central point (XB, YB) To the coordinates of the point translated in the positive direction of the y-axis by the length of half the height of the character size (XB1, YB1) To calculate this coordinate (XB1, YB1) To match the lower center point of the character string area. Thereafter, the determination process of step 204 is performed. As a result, if it is determined that the character string areas do not overlap, the reset position is stored in the position information storage unit 25 (step 206).
[0046]
On the other hand, if the overlap cannot be resolved by the first reset position calculation processing, the coordinates of the point further translated in the positive direction of the y-axis by the length half the height of the character size are reset (step 205) An overlapping portion determination process is performed (step 204). The above processing is repeated until it is determined in step 205 that they do not overlap. If it is determined that they do not overlap, the position is registered in the position information storage unit 25 (step 206). Here, the coordinates (X of the reset position obtained by performing this process N times)BN, YBN) Is given by:
[0047]
[Formula 6]
Figure 0003616992
[0048]
The data value display position setting process as described above is performed for all data values, and after the display positions of all data values are registered, the data value and lead line display process is performed (step 208). The data value display processing operation in the bar graph is completed.
[0049]
<Third Embodiment: Display Processing Operation in Line Graph>
As described above, the present invention can be applied to display of a character string area in a pie graph, a donut graph, and a bar graph, but can also be applied to a line graph as shown in FIG. 16 as a third embodiment. Hereinafter, display processing of data values in a line graph will be described with reference to the flowchart of FIG. Here, FIG. 17 is a flowchart for explaining the data value processing operation in the line graph. Note that H in FIG. 16 indicates the height of the line graph.
[0050]
First, as in the case of a pie chart or a bar graph, a line graph main body is created by the graph main body creating section 21 from the data values of each element sent from the graph data storage section 11 to the character string area calculating section 23. (Step 300) Subsequently, the inclination is calculated for all straight lines connecting adjacent data values from the coordinates of the data values of the line graph (Step 301).
[0051]
Next, the character size of the data value to be displayed on the line graph is designated from the character size data stored in the parameter storage unit 12 (step 302). The calculation method of the character size is the same as the calculation method in the bar graph, and the height h of the character string area is calculated by this processing.
[0052]
After the above processing is completed, the following processing is performed for each data value. First, the area S of the character string region of the data value is calculated from the height h and the number of characters specified in step 302 (step 303), and then the display position of each data value character string region in the line graph. Setting processing is performed (step 304). After the process in step 304, the setting position is determined in the same manner as in the case of a pie chart or the like (step 305), and the display position resetting process is performed depending on the determination result in step 305 (step 306).
[0053]
Here, the calculation method of the display position and the reset position differs depending on the combination of the slopes of the left and right straight lines of each data value. This point will be described below. Note that the coordinates of any data value in the line graph are (XL, YL), And the inclination of the left polygonal line of this coordinate is ΔL, and the inclination of the right polygonal line is ΔR.
[0054]
<Pattern 1: 0 ≦ ΔL <1 and 0 ≦ ΔR <1 or −1 <ΔL ≦ 0 and −1 <ΔR ≦ 0>
First, the case of 0 ≦ ΔL <1 and 0 ≦ ΔR <1 or −1 <ΔL ≦ 0 and −1 <ΔR ≦ 0 as shown in FIG. 18 (hereinafter referred to as pattern 1) will be described. In pattern 1, the coordinates of the data value (XL, YLThe display position is set by matching the lower center point of the character string area with ().
[0055]
Further, the display position resetting process in pattern 1 is performed as shown in FIG. First, in the first display position resetting process, the coordinates (XL, YL) To match the upper center point of the character string area as shown in FIG. Here, when the setting position determination in step 305 is performed and it is determined that the overlap is not avoided, the second resetting process is performed. In this second resetting process, the coordinates (XL, YL) To the coordinates (X) translated in the positive direction of the y-axis by half the character size heightL2, YL2) To match the lower center point of the character string area as shown in FIG. After the completion of this process, the setting position determination in step 305 is performed again. If it is determined that the overlap is not avoided, a third resetting process is further performed. In the third position resetting process, the coordinates (XL, YL) To the coordinate (X) translated in the negative direction of the y-axis by half the height of the character sizeL3, YL3) To match the upper center point of the character string area as shown in FIG.
[0056]
As described above, when the reset process is performed N times on the data value of pattern 1, the following cases can be classified. First, when the number of reset processes is an odd number (N = 2n + 1, n = 0, 1, 2,...), The y-axis is a length corresponding to n times half the height of the character size from the coordinates of the data value. The position is set so that the upper center point of the character string area matches the coordinate translated in the negative direction. Further, when the number of reset processes is an even number (N = 2n, n = 1, 2,...), The y-axis is positive by a length corresponding to n times half the height of the character size from the coordinates of the data value. The position is set so that the lower center point of the character string area matches the coordinate translated in the direction of. This process is repeated until the position is reset.
[0057]
<Pattern 2: When 0 <ΔL and ΔR <0>
Next, a case where 0 <ΔL and ΔR <0 as shown in FIG. 19 (hereinafter referred to as pattern 2) will be described. In pattern 2, the coordinate of the data value (XL, YLThe display position is set by matching the lower center point of the character string area with ().
[0058]
Further, the position resetting process in pattern 2 is performed as shown in FIG. First, in the first position reset process, the coordinates of the data value (XL, YL) To the coordinates (X) translated in the positive direction of the y-axis by half the height of the character sizeL1, YL1) To match the lower center point of the character string area as shown in FIG. Therefore, if this process is performed N times on the data value of pattern 2 in order to avoid overlap, the positive value of the y-axis is the length corresponding to N times the height of the character size from the coordinates of the data value. The position is set so that the lower center point of the character string area matches the coordinate translated in the direction.
[0059]
Here, the calculation method of the display position and the reset position in the pattern 2 is also for the case where 1 ≦ ΔL and 0 ≦ ΔR <1 or −1 <ΔL ≦ 0 and ΔR ≦ −1 as shown in FIG. To establish. Furthermore, this display method is also applied when displaying at both ends of the graph, and as shown in FIG. 21, it can also be applied when ΔR ≦ 0 at the left end of the line graph or 0 ≦ ΔL at the right end of the line graph. .
[0060]
<Pattern 3: When ΔL <0 and 0 <ΔR>
Next, a case where ΔL <0 and 0 <ΔR (hereinafter referred to as pattern 3) as shown in FIG. 22 will be described. In pattern 3, the coordinate of the data value (XL, YL) To match the upper center point of the character string area, the display position is set.
[0061]
Further, the position resetting process in the pattern 3 is performed as shown in FIG. First, in one position reset process, the coordinates (XL, YL) To the coordinate (X) translated in the negative direction of the y-axis by half the height of the character sizeL1, YL1), The position is set so that the upper center point of the character string area matches as shown in FIG. Therefore, if this process is performed N times on the data value of pattern 3 to avoid overlap, the negative value of the y-axis is the length corresponding to N times the height of the character size from the coordinate of the data value. The position is set so that the upper center point of the character string area matches the coordinate translated in the direction of.
[0062]
Here, the calculation method of the display position and the reset position in the pattern 3 is also the case where 0 ≦ ΔL <1 and 1 ≦ ΔR, or ΔL ≦ −1 and −1 <ΔR ≦ 0, as shown in FIG. To establish. Furthermore, this display position calculation method is also applied when displaying at both ends of the graph, and is applied when 0 <ΔR at the left end of the line graph or when ΔL <0 at the right end of the line graph as shown in FIG. Is done.
[0063]
<Pattern 4: 1 ≦ ΔL and 1 ≦ ΔR>
Next, a case where 1 ≦ ΔL and 1 ≦ ΔR (hereinafter referred to as pattern 4) as shown in FIG. 25 will be described. In pattern 4, the coordinates of the data value (XL, YL) Is matched with the lower right point of the character string area, the display position is set.
[0064]
Further, the position resetting process in the pattern 4 is performed as shown in FIG. First, in the first position reset process, the coordinates of the data value (XL, YL) Is matched with the upper left point of the character string area as shown in FIG. In the second position reset process, the coordinates of the data value (XL, YL), The coordinates (X) translated in the upper left 45 ° direction by half the height of the character sizeL2, YL2), The position is set so that the lower right point of the character string area is matched as shown in FIG. In the third position reset process, the coordinates of the data value (XL, YL) To the coordinates (X) translated in the lower right 45 ° direction by half the height of the character size.L3, YL3), The position is set so that the upper left point of the character string area matches as shown in FIG.
[0065]
When the above resetting process is performed N times, cases can be classified as follows. First, when the number of reset processes is an odd number (N = 2n + 1, n = 0, 1, 2,...), The coordinates (XL, YL) To the coordinates (X) translated in the lower right 45 ° direction by the length of n times half the height of the character size.LNO, YLNO) Is set to match the upper left point of the character string area.
[0066]
[Expression 7]
Figure 0003616992
[0067]
Further, when the number of reset processing times is an even number (N = 2n, n = 1, 2,...), The coordinates (XL, YL) To the coordinates (X) translated in the upper left 45 ° direction by the length of n times half the height of the character sizeLNE, YLNE) To align the lower right point of the character string area. This is repeated until the position is reset until the overlap is avoided.
[0068]
[Equation 8]
Figure 0003616992
[0069]
<Pattern 5: When ΔL ≦ −1 and ΔR ≦ −1>
Next, a case where ΔL ≦ −1 and ΔR ≦ −1 as shown in FIG. 26 (hereinafter referred to as pattern 5) will be described. In pattern 5, the coordinate of the data value (XL, YLThe display position is set by matching the lower left point of the character string area with ().
[0070]
The resetting process in pattern 5 is performed as shown in FIG. First, in the first position reset process, the coordinates of the data value (XL, YL) To match the upper right point of the character string area as shown in FIG. In the second position reset process, the coordinates of the data value (XL, YL) To the upper right 45 ° direction by half the character size (X)L2, YL2), The position is set so that the lower left point of the character string area matches as shown in FIG. In the third position reset process, the coordinates of the data value (XL, YL), The coordinates (X) translated in the lower left 45 ° direction by half the height of the character sizeL3, YL3), The position is set so that the upper right point of the character string area matches as shown in FIG.
[0071]
When the above resetting process is performed N times, cases can be classified as follows. First, when N is an odd number (N = 2n + 1, n = 0, 1, 2,...), The coordinates (XL, YL) To the coordinate (X in the lower left 45 ° direction by a length corresponding to n times half the height of the character size.LNO, YLNO) To align the upper right point of the character string area.
[0072]
[Equation 9]
Figure 0003616992
[0073]
If N is an even number (N = 2n, n = 1, 2,...), The coordinates of the data value (XL, YL) To the coordinates (X) translated in the upper right 45 ° direction by the length of n times half the height of the character size.LNE, YLNE) Is set to match the lower left point of the character string area. This is repeated until the position is reset until the overlap is avoided.
[0074]
[Expression 10]
Figure 0003616992
[0075]
The data value display position setting process as described above is performed for all data values, and after the display positions of all data values are registered, the data value display process is performed (step 309). The data value display processing operation is completed.
[0076]
Here, the data value display processing operation of various graphs as described above and the graph display system that displays the data value by executing this display processing operation have been described. As means for executing this display processing operation, The present invention is not limited to the graph display system, and a program for performing the display processing operation of the present invention may be created and the display processing operation may be executed based on this program. Specifically, this program has a function of causing a computer to create a graph body based on graph data, and a size of a character string area required for displaying each data value based on the graph data and character parameter data. A function for calculating the length, a function for setting and resetting the display position of the character string area of each data value, a function for registering position information of the set position in the storage unit, and a function for registering each registered data value Based on the display position information, a function for performing display processing on a graph for all data values is realized. In addition, if necessary, it is also possible to realize a function for performing a leader line display process for displaying a leader line connecting a graph and a character string area based on display position information of all registered data. it can.
[0077]
【The invention's effect】
As described above, according to the present invention, when creating various graphs, the overlap of data values is automatically performed without changing the character size or manually adjusting the display position of the data values. It is avoided and each data value can be displayed directly on the graph, so an easy-to-read graph is automatically created.
[Brief description of the drawings]
FIG. 1 is a block diagram of a graph display system of the present invention.
FIG. 2 is a diagram for explaining a character string area in the present invention.
FIG. 3 is a flowchart for explaining a data value display processing operation in the pie chart according to the first embodiment of the present invention;
4 is a flowchart for explaining a processing operation for setting a display position of a data value in FIG. 3; FIG.
FIG. 5 is a diagram for explaining a processing operation for positioning a character string area within a sector area of a pie chart in the first embodiment.
FIG. 6 is a diagram showing a state in which a character string area is set inside a sector area in the first embodiment.
FIG. 7 is a diagram showing a state in which the character string area cannot be set inside the sector area in the first embodiment.
FIG. 8 is a diagram for explaining a processing operation for positioning a character string area outside a sector area in the first embodiment.
FIG. 9 is a diagram for explaining a state in which the character string area is set outside the sector area in the first embodiment.
FIG. 10 is a diagram for explaining a processing operation for resetting the position of the character string area outside the sector area in the first embodiment.
FIG. 11 is a diagram for explaining a processing operation for setting a character string region in a donut-shaped graph.
FIG. 12 is a diagram showing an example of a bar graph according to the second embodiment of the present invention.
FIG. 13 is a flowchart illustrating a data value display processing operation in the bar graph of the second embodiment.
FIG. 14 is a diagram for explaining a processing operation for setting a character string region in a bar graph according to the second embodiment.
FIG. 15 is a diagram for explaining a processing operation for resetting the position of a character string region in the bar graph of the second embodiment.
FIG. 16 is a diagram showing an example of a line graph according to the third embodiment of the present invention.
FIG. 17 is a flowchart for explaining the display processing operation of data values in the line graph of the third embodiment.
FIG. 18 is a diagram for explaining a display position setting operation in pattern 1 of the third embodiment.
FIG. 19 is a diagram for explaining a display position setting operation in pattern 2 of the third embodiment.
FIG. 20 is a diagram for explaining a display position setting operation in pattern 2 of the third embodiment.
FIG. 21 is a diagram for explaining a display position setting operation in pattern 2 of the third embodiment.
FIG. 22 is a diagram for explaining a display position setting operation in pattern 3 of the third embodiment.
FIG. 23 is a diagram for explaining a display position setting operation in pattern 3 of the third embodiment.
FIG. 24 is a diagram for explaining a display position setting operation in pattern 3 of the third embodiment.
FIG. 25 is a diagram for explaining a display position setting operation in pattern 4 of the third embodiment.
FIG. 26 is a diagram for explaining a display position setting operation in pattern 5 of the third embodiment.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Graph display system, 10 ... Memory | storage device, 11 ... Graph data memory | storage part, 12 ... Parameter memory | storage part, 20 ... Graph creation apparatus, 21 ... Graph main body creation part, 22 ... Data value processing part, 23 ... Character string area | region calculation , 24... Character string region position setting unit, 25... Position information storage unit, 26... Character string region display processing unit, 27.

Claims (4)

グラフデータ及び文字パラメータデータが記憶される記憶部を有する記憶装置と、前記記憶装置に記憶されるデータを基にグラフ作成及びデータ値表示のための処理を行うグラフ作成装置と、前記グラフ作成装置で作成されたグラフを表示する表示装置と、を備えるグラフ表示システムであって、
前記グラフ作成装置が、グラフ本体を作成するグラフ本体作成部と、データ値表示の際に必要な文字列領域の大きさを算出する文字列領域算出部と、前記文字列領域算出部で算出された文字列領域の表示位置を設定する文字列領域位置設定部と、前記文字列領域位置設定部で設定された位置に関する情報を登録する位置情報登録部と、前記位置情報登録部に登録された全データ値の表示位置情報に基づいて、文字列領域の表示処理を行う文字列領域表示処理部と、を備え、
円グラフあるいはドーナツ状グラフを作成する場合には、前記文字列領域位置設定部は、表示対象たるデータ値の文字列領域が円グラフあるいはドーナツ状グラフの内部に表示された状態で、この文字列領域と扇形領域とが重なっている部分の面積を算出し且つここで得られた面積が当該文字列領域の面積に占める割合を算出し、算出された割合がしきい値より大きいか否かを判定し、その判定結果に基づいて表示対象たるデータ値の文字列領域を円グラフあるいはドーナツ状グラフの内部に表示するか外部に表示するかを決定して、各データ値の文字列領域の表示位置を設定および再設定することを特徴とするグラフ表示システム。
A storage device having a storage unit for storing graph data and character parameter data, a graph creation device that performs processing for creating a graph and displaying a data value based on the data stored in the storage device, and the graph creation device A graph display system comprising: a display device that displays a graph created in
The graph creation device is calculated by a graph body creation unit that creates a graph body, a character string region calculation unit that calculates the size of a character string region that is necessary for data value display, and the character string region calculation unit. A character string region position setting unit for setting the display position of the character string region, a position information registration unit for registering information related to the position set by the character string region position setting unit, and the position information registration unit. A character string area display processing unit that performs display processing of the character string area based on display position information of all data values,
When creating a pie chart or a donut chart, the character string area position setting unit displays the character string area in a state where the character string area of the data value to be displayed is displayed inside the pie chart or the donut chart. Calculate the area of the overlapping area of the area and the sector area, calculate the ratio of the area obtained here to the area of the character string area, and whether or not the calculated ratio is greater than the threshold Determine whether to display the character string area of the data value to be displayed based on the determination result inside or outside the pie chart or donut chart, and display the character string area of each data value A graph display system characterized by setting and resetting a position.
前記文字列領域位置設定部により円グラフあるいはドーナツ状グラフの外部に表示するよう決定されたデータ値の文字列領域に対して、当該文字列領域とグラフとを結ぶ引き出し線の表示処理を行う引き出し線表示処理部を、前記グラフ作成装置に備えることを特徴とする請求項1に記載のグラフ表示システム。A drawer that performs display processing of a lead line connecting the character string area and the graph to the character string area of the data value determined to be displayed outside the pie chart or the donut graph by the character string area position setting unit The graph display system according to claim 1, wherein a line display processing unit is provided in the graph creation device. 円グラフあるいはドーナツ状グラフを作成する場合には、コンピュータに、When creating a pie chart or donut chart,
グラフデータに基づきグラフ本体を作成させる機能と、A function to create a graph body based on graph data;
前記グラフデータと文字パラメータデータとに基づき各データ値を表示する際に必要とする文字列領域の大きさを算出させる機能と、A function for calculating the size of the character string area required when displaying each data value based on the graph data and the character parameter data;
表示対象たるデータ値の文字列領域が円グラフあるいはドーナツ状グラフの内部に表示された状態で、この文字列領域と扇形領域とが重なっている部分の面積を算出し且つここで得られた面積が当該文字列領域の面積に占める割合を算出し、算出された割合がしきいIn the state where the character string area of the data value to be displayed is displayed inside the pie chart or donut chart, the area of the overlapping area of the character string area and the sector area is calculated and the area obtained here Calculates the percentage of the character string area in the area, and the calculated percentage is the threshold.
値より大きいか否かを判定し、その判定結果に基づいて表示対象たるデータ値の文字列領域を円グラフあるいはドーナツ状グラフの内部に表示するか外部に表示するかを決定して、各データ値の文字列領域の表示位置を設定および再設定させる機能とIt is determined whether or not it is larger than the value, and based on the determination result, it is determined whether the character string area of the data value to be displayed is displayed inside or outside the pie chart or donut chart, and each data A function to set and reset the display position of the value string area
その設定した位置の位置情報を記憶部に登録させる機能と、A function to register the position information of the set position in the storage unit;
その登録された各データ値の表示位置情報に基づき、全データ値に対してグラフ上へのBased on the display position information of each registered data value, all data values are displayed on the graph.
表示処理を行わせる機能と、A function to perform display processing;
を実現させるためのグラフのデータ値表示処理プログラム。Graph data value display processing program for realizing.
コンピュータに、登録された全データの表示位置情報に基づき、円グラフあるいはドーナツ状グラフの外部に表示するよう決定されたデータ値の文字列領域に対して、当該文字列領域とグラフとを結ぶ引き出し線を表示するための引き出し線表示処理を行わせる機能を実現させるための請求項3に記載のグラフのデータ値表示処理プログラム。 A drawer that connects the character string area and the graph to the character string area of the data value determined to be displayed outside the pie chart or the donut-shaped graph based on the display position information of all the data registered in the computer The graph data value display processing program according to claim 3 for realizing a function of performing a lead line display process for displaying a line .
JP2001044188A 2001-02-20 2001-02-20 Graph display system and data value display processing program thereof Expired - Fee Related JP3616992B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001044188A JP3616992B2 (en) 2001-02-20 2001-02-20 Graph display system and data value display processing program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001044188A JP3616992B2 (en) 2001-02-20 2001-02-20 Graph display system and data value display processing program thereof

Publications (2)

Publication Number Publication Date
JP2002244644A JP2002244644A (en) 2002-08-30
JP3616992B2 true JP3616992B2 (en) 2005-02-02

Family

ID=18906220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001044188A Expired - Fee Related JP3616992B2 (en) 2001-02-20 2001-02-20 Graph display system and data value display processing program thereof

Country Status (1)

Country Link
JP (1) JP3616992B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6091907B2 (en) * 2013-01-23 2017-03-08 Kddi株式会社 Terminal device and display program
JP2014194712A (en) * 2013-03-29 2014-10-09 Fujifilm Corp Inspection data display control device, method and program
JP6661882B2 (en) * 2015-02-02 2020-03-11 株式会社ソシオネクスト Information processing apparatus, tremor information display method, information processing system, and program

Also Published As

Publication number Publication date
JP2002244644A (en) 2002-08-30

Similar Documents

Publication Publication Date Title
JP5387193B2 (en) Image processing system, image processing apparatus, and program
JP3616992B2 (en) Graph display system and data value display processing program thereof
CN109741394A (en) Image processing method, device, electronic equipment and storage medium
CN106780308B (en) Image perspective transformation method
JP2009204989A (en) Information processor, information processing method, and program
JP2004139485A (en) Summary map generation device, road map conversion device, program therefor and summary map service system
JP5203690B2 (en) Graphic element arrangement apparatus and program
JPS6349885A (en) Image processor
CN111460624B (en) Mathematical modeling method and device for human organs and storage medium
CN117237441B (en) Sub-pixel positioning method, sub-pixel positioning system, electronic equipment and medium
JP3799164B2 (en) Image processing method and image processing apparatus
JP2002062633A (en) Mask pattern correction method and correction device
WO1999064989A1 (en) Image processor
JP2898014B2 (en) Graphic processing apparatus and method
JPH0715647A (en) Correcting method for lens distortional aberration of two-dimensional image pickup device
JP2009116157A (en) Screen display method of numerical control device
JP3350325B2 (en) Character output device
US20060170694A1 (en) Patterned polygon rendering apparatus
JP3443840B2 (en) Ruled line output method and ruled line output device
JP2613653B2 (en) Image processing device
JP2972003B2 (en) Automatic creation of development drawings for bending
JPH0747336B2 (en) Enlargement correction device for character patterns
JP3350324B2 (en) Character output device
JPH1166328A (en) Curve plotting device
JP2009069903A (en) Missing area interpolation device, missing area interpolation method, and program

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040706

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040804

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040928

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041028

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R360 Written notification for declining of transfer of rights

Free format text: JAPANESE INTERMEDIATE CODE: R360

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees