iode.TableLine.graph_type
- property TableLine.graph_type: str
Graph type associated with the table line.
- Parameters:
- value: TableGraphType
Possible values are LINE, SCATTER or BAR.
Examples
>>> from iode import SAMPLE_DATA_DIR, TableGraphType >>> from iode import tables, Table >>> tables.load(f"{SAMPLE_DATA_DIR}/fun.tbl") Loading .../fun.tbl 46 objects loaded >>> table = tables["ANAPRIX"] >>> table DIVIS | 1 | TITLE | "Analyse des prix" ----- | --------------------------------------------------------------- CELL | | "#s" ----- | --------------------------------------------------------------- CELL | "GAP_" | GAP_ CELL | "dln (PC/(1+ITCR))-dln AOUC" | 100*(dln (PC/(1+ITCR))-dln AOUC) nb lines: 6 nb columns: 2 language: 'ENGLISH' gridx: 'MAJOR' gridy: 'MAJOR' graph_axis: 'VALUES' graph_alignment: 'LEFT'
>>> table[4] ('"GAP_"', 'GAP_') >>> table[4].graph_type 'LINE' >>> table[4].graph_type = "scatter" >>> table[4].graph_type 'SCATTER' >>> table[4].graph_type = TableGraphType.BAR >>> table[4].graph_type 'BAR'