JP2564139Y2 - Graph creation device - Google Patents

Graph creation device

Info

Publication number
JP2564139Y2
JP2564139Y2 JP9843491U JP9843491U JP2564139Y2 JP 2564139 Y2 JP2564139 Y2 JP 2564139Y2 JP 9843491 U JP9843491 U JP 9843491U JP 9843491 U JP9843491 U JP 9843491U JP 2564139 Y2 JP2564139 Y2 JP 2564139Y2
Authority
JP
Japan
Prior art keywords
data
graph
column direction
row direction
creating
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
JP9843491U
Other languages
Japanese (ja)
Other versions
JPH0540950U (en
Inventor
貴広 大川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP9843491U priority Critical patent/JP2564139Y2/en
Publication of JPH0540950U publication Critical patent/JPH0540950U/en
Application granted granted Critical
Publication of JP2564139Y2 publication Critical patent/JP2564139Y2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Digital Computer Display Output (AREA)

Description

【考案の詳細な説明】[Detailed description of the invention]

【0001】[0001]

【産業上の利用分野】この考案は、表データを図表化し
たグラフを作成するグラフ作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graph creating apparatus for creating a graph of tabular data.

【0002】[0002]

【従来の技術】従来、オフィスコンピュータやワードプ
ロセッサ等にはグラフ作成機能が標準装備されており、
ワークシート画面上に入力された行列構造の表データを
横軸と縦軸との相関関係で表したグラフを作成するよう
にしている。すなわち、図5の(A)はワークシート画
面上に入力された月間売上表の表データを示し、この表
データを構成する列方向のデータはワークシート画面の
列名「B」、「C」……「G」に対応して「1月」、
「2月」、……「6月」の月データとなっており、また
行方向のデータはワークシート画面上の行番号「4」、
「5」に対応して「電卓」、「時計」の売上高となって
いる。このような表データから例えば、積み重ね棒グラ
フを作成すると、図5(B)に示す如く、表の列方向の
データ「1月」〜「6月」はグラフの横軸方向に配置さ
れた要素データとなり、また表の列方向のデータ「電
卓」、「時計」の売上高はグラフの縦軸方向に配置され
た項目データとなる。つまり、常に表の列方向のデータ
をグラフの要素データとし、表の行方向のデータをグラ
フの項目データとする様なグラフが作成される。
2. Description of the Related Art Conventionally, office computers and word processors are provided with a graph creation function as standard.
A graph is created in which the matrix data of the matrix structure input on the worksheet screen is represented by the correlation between the horizontal axis and the vertical axis. That is, FIG. 5A shows the table data of the monthly sales table input on the worksheet screen, and the data in the column direction constituting this table data are column names “B” and “C” of the worksheet screen. ...... "January" corresponding to "G",
The month data is “February”, “June”, and the row direction data is the row number “4” on the worksheet screen.
Sales of “Calculator” and “Watch” correspond to “5”. For example, when a stacked bar graph is created from such table data, as shown in FIG. 5B, the data “January” to “June” in the column direction of the table are the element data arranged in the horizontal axis direction of the graph. , And the sales of the data “calculator” and “clock” in the column direction of the table are the item data arranged in the vertical axis direction of the graph. In other words, a graph is created in which data in the column direction of the table is always used as element data of the graph, and data in the row direction of the table is used as item data of the graph.

【0003】[0003]

【考案が解決しようとする課題】ところで、いま図6の
(A)に示す様な表データをワークシート画面上に入力
したものとする。つまり、図6の(A)に示す表データ
は図5の(A)に示す表データに対して表の行列を逆に
入力したもので、両者は行列を逆転させただけでデータ
としては全く同様のものである。この様な表データから
積み重ね棒グラフを作成すると、図5の(B)のグラフ
と同様に、表の列方向のデータがグラフの要素データと
なり、表の行方向のデータがグラフの項目データとなる
為、図6の(B)に示す様に、表の要素データが電卓、
時計の売上高、項目データが月データとなる積み重ねグ
ラフが作成される。しかしながら、図6の(B)に示す
様なグラフでは月別売上表として不適当であり、図5の
(B)に示す様な所望するフォーマットのグラフを得る
ことができないという欠点があった。この考案の課題
は、行列構造の表データがどの様なデータ並びで作成さ
れたかに拘らず、常に所望するフォーマットのグラフを
作成できるようにすることである。
By the way, it is assumed that tabular data as shown in FIG. 6A has been input on the worksheet screen. That is, the table data shown in FIG. 6A is obtained by reversing the matrix of the table with respect to the table data shown in FIG. 5A. It is similar. When a stacked bar graph is created from such table data, the data in the column direction of the table becomes the element data of the graph, and the data in the row direction of the table becomes the item data of the graph, similarly to the graph of FIG. Therefore, as shown in FIG. 6B, the element data of the table is a calculator,
A stacked graph in which the clock sales and item data are month data is created. However, the graph shown in FIG. 6B is not suitable as a monthly sales table, and has a drawback that a graph in a desired format as shown in FIG. 5B cannot be obtained. An object of the present invention is to make it possible to always create a graph in a desired format irrespective of the data arrangement of table data having a matrix structure.

【0004】[0004]

【課題を解決するための手段】この考案の手段は次の通
りである。データ数計数手段1(図1の機能ブロック図
を参照、以下同じ)は、行列構造の表データを横軸と縦
軸との相関関係で表したグラフを作成するグラフ作成装
置において、表データを構成する列方向のデータ数と行
方向のデータ数とを計数する。ここで、グラフとは横軸
と縦軸との相関関係で表データを表現する折れ線グラ
フ、棒グラフ等である。比較手段2はこのデータ数計数
手段1によって計数された列方向のデータ数と行方向の
データ数とを比較する。第1のグラフ作成手段3はこの
比較手段2によって行方向のデータ数が列方向のデータ
数以下の場合には列方向のデータをグラフの要素データ
に対応させ、行方向のデータをグラフの項目データに対
応させたグラフを作成する。なお、例えば、グラフの要
素データは横軸方向、項目データは縦軸方向に対応して
いる。第2のグラフ作成手段4は比較手段2によって行
方向のデータ数が列方向のデータ数よりも多い場合、行
方向のデータをグラフの要素データに対応させ、列方向
のデータをグラフの項目データに対応させたグラフを作
成する。
The means of the present invention are as follows. The data number counting means 1 (refer to the functional block diagram of FIG. 1; the same applies hereinafter) is used in a graph creating apparatus for creating a graph in which table data having a matrix structure is represented by a correlation between a horizontal axis and a vertical axis. The number of data in the column direction and the number of data in the row direction are counted. Here, the graph is a line graph, a bar graph, or the like that expresses table data in a correlation between the horizontal axis and the vertical axis. The comparing means 2 compares the number of data in the column direction counted by the data number counting means 1 with the number of data in the row direction. When the number of data in the row direction is equal to or less than the number of data in the column direction by the comparing means 2, the first graph creation means 3 associates the data in the column direction with the element data of the graph, and converts the data in the row direction into the item of the graph. Create a graph corresponding to the data. For example, the element data of the graph corresponds to the horizontal axis direction, and the item data corresponds to the vertical axis direction. If the number of data in the row direction is larger than the number of data in the column direction by the comparing means 2, the second graph creating means 4 associates the data in the row direction with the element data of the graph and converts the data in the column direction into the item data of the graph. Create a graph corresponding to.

【0005】[0005]

【作用】この考案の手段の作用は次の通りである。い
ま、ワークシート画面上に入力した行列構造の表データ
に基づいてグラフを作成する場合、データ数計数手段1
はグラフ作成指令に応答し、表データを構成する列方向
のデータ数と行方向のデータ数とを計数する。すると、
比較手段2はデータ数計数手段1によって計数された列
方向のデータ数と行方向のデータ数とを比較する。この
結果、表の行方向のデータ数が列方向のデータ数以下の
場合、第1のグラフ作成手段3は列方向のデータをグラ
フの要素データに対応させ、行方向のデータをグラフの
項目データに対応させた折れ線グラフや棒グラフを作成
する。一方、表の行方向のデータ数が列方向のデータ数
よりも多い場合、第2のグラフ作成手段4は上述の場合
とは逆に行方向のデータをグラフの要素データに対応さ
せ、列方向のデータをグラフの項目データに対応させた
折れ線グラフや棒グラフを作成する。したがって、行列
構造の表データがどの様なデータ並びで作成されたかに
拘らず、常に所望するフォーマットのグラフを作成する
ことができる。
The operation of the means of the present invention is as follows. Now, when creating a graph based on the matrix structured table data input on the worksheet screen, the data number counting means 1
Responds to the graph creation command, and counts the number of data in the column direction and the number of data in the row direction constituting the table data. Then
The comparing means 2 compares the number of data in the column direction counted by the data number counting means 1 with the number of data in the row direction. As a result, when the number of data in the row direction of the table is equal to or less than the number of data in the column direction, the first graph creating means 3 associates the data in the column direction with the element data of the graph and converts the data in the row direction into the item data of the graph. Create a line chart or bar chart corresponding to. On the other hand, if the number of data in the row direction of the table is larger than the number of data in the column direction, the second graph creating means 4 makes the row direction data correspond to the element data of the graph, Create a line chart or bar chart that corresponds to the data of the graph with the item data of the graph. Therefore, it is possible to always create a graph in a desired format, irrespective of the data arrangement in which table data having a matrix structure is created.

【0006】[0006]

【実施例】以下、図2〜図4を参照して一実施例を説明
する。図2はグラフ作成装置のハードブロック図であ
る。表データ作成装置11は入力部12から入力された
データに基づいて表データを作成し、表データメモリ1
3に格納したり、CRT表示装置14のワークシート画
面上に表示出力させる。この入力部12によって作成さ
れた表データは行列構造で、列方向のデータ群と行方向
のデータ群とから成る。なお、表データメモリ13内に
書き込まれた表データは、表データファイル15に格納
される。
An embodiment will be described below with reference to FIGS. FIG. 2 is a hardware block diagram of the graph creation device. The table data creation device 11 creates table data based on the data input from the input unit 12 and stores the table data in the table data memory 1.
3 or output on the worksheet screen of the CRT display device 14. The table data created by the input unit 12 has a matrix structure, and includes a data group in a column direction and a data group in a row direction. The table data written in the table data memory 13 is stored in the table data file 15.

【0007】表データ解析部16は表データをグラフ出
力する際に、表データファイル15から表データメモリ
13に読み込まれた表データを解析し、表の列方向のデ
ータ数と行方向のデータ数とを計数すると共に、列方向
のデータ数と行方向のデータ数とを比較する。要素デー
タメモリ17は表データ解析部16の比較結果に応じて
表データメモリ13から読み出されたデータがグラフの
横軸方向に配置される要素データとして設定されるメモ
リであり、また項目データメモリ18は表データ解析部
16の比較結果に応じて表データメモリ13から読み出
されたデータがグラフの縦軸方向に配置される項目デー
タとして設定されるメモリである。
When outputting the table data as a graph, the table data analysis unit 16 analyzes the table data read from the table data file 15 into the table data memory 13 and calculates the number of data in the column direction and the number of data in the row direction of the table. And the number of data in the column direction is compared with the number of data in the row direction. The element data memory 17 is a memory in which data read from the table data memory 13 according to the comparison result of the table data analysis unit 16 is set as element data arranged in the horizontal axis direction of the graph. Reference numeral 18 denotes a memory in which data read from the table data memory 13 in accordance with the comparison result of the table data analysis unit 16 is set as item data arranged in the vertical axis direction of the graph.

【0008】グラフスペックデータ作成部19は表デー
タを横軸と縦軸との相関関係で表すグラフスペックデー
タを作成するもので、本実施例で作成可能なスペックデ
ータは標準目盛、計数目盛等の折れ線グラフや積み重ね
等の棒グラフである。グラフデータ作成部20は折れ線
グラフや棒グラフ上に展開されるグラフデータを作成す
る。グラフスペックデータ作成部19、グラフデータ作
成部20によって作成されたデータはCRT表示装置1
4から表示出力されたり、グラフ印字装置21から印字
出力される。
The graph specification data generating section 19 generates graph specification data representing table data in a correlation between the horizontal axis and the vertical axis. The specification data that can be generated in this embodiment includes standard scales, count scales, and the like. It is a bar graph such as a line graph or a stack. The graph data creation unit 20 creates graph data developed on a line graph or a bar graph. The data created by the graph specification data creating unit 19 and the graph data creating unit 20 are stored in the CRT display device 1.
4 and printed out from the graph printer 21.

【0009】次に、本実施例の動作を説明する。図4は
グラフ作成装置の動作を示したフローチャートである。
先ず、グラフ作成対象である表データを指定すると共に
作成すべきグラフの種類を指定すると、表データファイ
ル15からグラフ作成対象である表データが表データメ
モリ13に読み出される(ステップS1)。すると、表
データ解析部16は表データメモリ13内の表データを
解析する。即ち、表の列方向のデータ数を計数すると共
に行方向のデータ数を計数する(ステップS2)。次い
で、表の列方向のデータ数と行方向のデータ数とを比較
する(ステップS3)。この結果、行方向のデータ数が
列方向のデータ数以下の場合にはステップS4に進み、
列方向のデータを表の要素データとして要素データメモ
リ17に設定し、行方向のデータを表の項目データとし
て項目データメモリ18に設定する。一方、行方向のデ
ータ数が列方向のデータ数よりも多い場合にはステップ
S5に進み、行方向のデータを表の要素データとして要
素データメモリ17に設定し、列方向のデータを表の項
目データとして項目データメモリ18に設定する。い
ま、図4の(A)に示す表データは列方向のデータ数は
「6」、行方向のデータ数は「2」、したがってステッ
プS3で列方向のデータ>行方向のデータ数が検出され
る為、要素データメモリ17には表の行方向のデータ
(1月〜6月のデータ)が設定され、項目データメモリ
18には表の列方向のデータ(電卓、時計の売上高)が
設定される。
Next, the operation of this embodiment will be described. FIG. 4 is a flowchart showing the operation of the graph creation device.
First, when the table data to be graph-created is designated and the type of graph to be created is designated, the table data to be graph-created is read from the table data file 15 to the table data memory 13 (step S1). Then, the table data analysis unit 16 analyzes the table data in the table data memory 13. That is, the number of data in the column direction of the table and the number of data in the row direction are counted (step S2). Next, the number of data in the column direction and the number of data in the row direction of the table are compared (step S3). As a result, when the number of data in the row direction is equal to or less than the number of data in the column direction, the process proceeds to step S4,
The data in the column direction is set in the element data memory 17 as the element data of the table, and the data in the row direction is set in the item data memory 18 as the item data of the table. On the other hand, if the number of data in the row direction is larger than the number of data in the column direction, the process proceeds to step S5, the data in the row direction is set in the element data memory 17 as the element data of the table, and the data in the column direction is stored in the item of the table. The data is set in the item data memory 18. Now, in the table data shown in FIG. 4A, the number of data in the column direction is "6" and the number of data in the row direction is "2". Therefore, in step S3, the data in the column direction> the number of data in the row direction is detected. Therefore, data in the row direction of the table (data from January to June) is set in the element data memory 17, and data in the column direction of the table (sales of calculators and watches) are set in the item data memory 18. Is done.

【0010】このようにしてグラフの要素データと項目
データが決定されると、要素データメモリ17、項目デ
ータメモリ18の内容に基づいてグラフ作成処理が行わ
れる。即ち、グラフスペックデータ作成部19からはス
ペックデータが作成されると共に(ステップS6)、グ
ラフデータ作成部20からはグラフデータが作成され
(ステップS7)、グラフデータはスペックデータと共
にCRT表示装置14から表示出力される(ステップS
8)。ここで、図4の(B)は図4の(A)に示す表デ
ータから積み重ね棒グラフを作成した場合の出力例で、
本来、図5の(A)に示す様な表データを作成すべきと
ころ図4の(A)の様にその行方向、列方向を逆にした
表データを作成したとしても図5の(A)に示す様な表
データを作成した場合と同様のグラフを得ることができ
る。
When the element data and the item data of the graph are determined in this way, a graph creation process is performed based on the contents of the element data memory 17 and the item data memory 18. That is, the specification data is created from the graph specification data creation unit 19 (step S6), the graph data is created from the graph data creation unit 20 (step S7), and the graph data is sent from the CRT display device 14 together with the specification data. Display output (Step S
8). Here, FIG. 4B is an output example when a stacked bar graph is created from the table data shown in FIG.
Originally, table data as shown in FIG. 5A should be created. Even if table data with its row direction and column direction reversed as shown in FIG. ) Can be obtained in the same graph as when the tabular data as shown in FIG.

【0011】なお、上記実施例は積み重ね棒グラフを例
示したが、折れ線グラフであっても同様である。
Although the above-described embodiment has exemplified the stacked bar graph, the same applies to a line graph.

【0012】[0012]

【考案の効果】この考案によれば、行列構造の表データ
がどの様なデータ並びで作成されたかに拘らず、常に所
望するフォーマットのグラフを作成することができるの
で、表データを作成する際、そのデータ並びを考慮する
必要がなくなり、表データを効率よく作成することが可
能となる。
According to the present invention, a graph in a desired format can always be created irrespective of the data arrangement in which matrix data is created. Therefore, it is not necessary to consider the data arrangement, and table data can be efficiently created.

【図面の簡単な説明】[Brief description of the drawings]

【図1】この考案の機能ブロック図。FIG. 1 is a functional block diagram of the present invention.

【図2】実施例を示したグラフ作成装置野ハードブロッ
ク図。
FIG. 2 is a hardware block diagram of a graph creating apparatus showing an embodiment.

【図3】グラフ作成装置の動作を説明する為のフローチ
ャート。
FIG. 3 is a flowchart for explaining the operation of the graph creation device.

【図4】表データをグラフ出力する場合において、
(A)は表データの具体例、(B)はそのグラフ出力例
を示した図。
FIG. 4 is a diagram showing a case where table data is output as a graph.
5A is a diagram showing a specific example of table data, and FIG. 5B is a diagram showing a graph output example thereof.

【図5】従来例を説明する為の図で、(A)は表データ
の作成例、(B)はそのグラフ出力例を示した図。
5A and 5B are diagrams for explaining a conventional example, in which FIG. 5A shows an example of creating table data, and FIG. 5B shows an example of graph output thereof.

【図6】従来例を説明する為の図で、(A)は表データ
の他の作成例、(B)はそのグラフ出力例を示した図。
6A and 6B are diagrams for explaining a conventional example, in which FIG. 6A shows another example of creating table data, and FIG. 6B shows an example of graph output thereof.

【符号の説明】[Explanation of symbols]

11 表データ作成装置 15 表データファイル 16 表データ解析部 17 要素データメモリ 18 項目データメモリ 19 グラフスペックデータ作成部 20 グラフデータ作成部 11 Table data creation device 15 Table data file 16 Table data analysis unit 17 Element data memory 18 Item data memory 19 Graph specification data creation unit 20 Graph data creation unit

Claims (1)

(57)【実用新案登録請求の範囲】(57) [Scope of request for utility model registration] 【請求項1】行列構造の表データを横軸と縦軸との相関
関係で表したグラフを作成するグラフ作成装置におい
て、 表データを構成する列方向のデータ数と行方向のデータ
数とを計数するデータ数計数手段と、 このデータ数計数手段によって計数された列方向のデー
タ数と行方向のデータ数とを比較する比較手段と、 この比較手段によって行方向のデータ数が列方向のデー
タ数以下の場合には列方向のデータをグラフの要素デー
タに対応させ、行方向のデータをグラフの項目データに
対応させたグラフを作成する第1のグラフ作成手段と、 前記比較手段によって行方向のデータ数が列方向のデー
タ数よりも多い場合には行方向のデータをグラフの要素
データに対応させ、列方向のデータをグラフの項目デー
タに対応させたグラフを作成する第2のグラフ作成手段
と、 を具備したことを特徴とするグラフ作成装置。
1. A graph creating apparatus for creating a graph in which table data having a matrix structure is represented by a correlation between a horizontal axis and a vertical axis, wherein the number of data in the column direction and the number of data in the row direction constituting the table data are determined. Means for counting the number of data to be counted; comparing means for comparing the number of data in the column direction counted by the number of data counting means with the number of data in the row direction; If the number is less than or equal to the number, first graph creating means for creating a graph in which the data in the column direction corresponds to the element data of the graph and the data in the row direction corresponds to the item data of the graph; If the number of data items in the row is larger than the number of data items in the column direction, the data in the row direction is made to correspond to the element data of the graph, and the data in the column direction is made to correspond to the item data of the graph. 2. A graph creation device, comprising: a graph creation means according to claim 2.
JP9843491U 1991-11-05 1991-11-05 Graph creation device Expired - Fee Related JP2564139Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9843491U JP2564139Y2 (en) 1991-11-05 1991-11-05 Graph creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9843491U JP2564139Y2 (en) 1991-11-05 1991-11-05 Graph creation device

Publications (2)

Publication Number Publication Date
JPH0540950U JPH0540950U (en) 1993-06-01
JP2564139Y2 true JP2564139Y2 (en) 1998-03-04

Family

ID=14219693

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9843491U Expired - Fee Related JP2564139Y2 (en) 1991-11-05 1991-11-05 Graph creation device

Country Status (1)

Country Link
JP (1) JP2564139Y2 (en)

Also Published As

Publication number Publication date
JPH0540950U (en) 1993-06-01

Similar Documents

Publication Publication Date Title
Dasarathy Image data compression: block truncation coding
JP2564139Y2 (en) Graph creation device
JPH10198741A (en) Table data processor and its program recording medium
JPH1049324A (en) Business form processor
JP3451289B2 (en) Table output device
WO2022230180A1 (en) Information processing device, information processing method, and program
JPH02281325A (en) Slip output device
JP3663840B2 (en) Graph processing device
JP3002017B2 (en) Data processing device
JP2506838B2 (en) Electronic cash register
JP2748779B2 (en) Date input device
JPH03286226A (en) Method and system for generating program
JPH0716186Y2 (en) Display controller
JPS6051950A (en) Program outputting system
JPS6037634Y2 (en) calendar printing device
JPH057741B2 (en)
JP2513924B2 (en) Setting method of item definition information
JPH0887512A (en) Register device for image data base
JPH01220066A (en) Document outputting device
JPS60114936A (en) Support device of specification forming
JPH0736863A (en) Word processor provided with tabulate display function for format setting
JPS61296389A (en) Display unit
JPH10326311A (en) Multidimensional totalized data generation system
JPH1049601A (en) Document outputting device
JPH10143579A (en) Table processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees