|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |
Object | +--ComposantSVG | +--ComposantChart
This class represent a SVG chart, with a title and a legend.
DataSet, legend and title are initialized by XML data when constructor is called.
DataSet can be update and Chart redraw when the method "update() is called.
Don't forget in XHTML page to define Three div correspond to the chart, legend of this chart and the title.
UML diagrams
Version: 2.7
Auteur: MAEE
Definie dans ergonomique/fw_svg_chart.js
Sommaire des Attributs | |
<private> Array |
colors
Array colors for data set. |
<private> Array |
dataset
Contains chart data, fill after the method "initData()" called. |
<private> String |
divBindLegend
Id for legend, equal at the attribute id of DIV for legend |
<private> String |
divBindTitle
Id for Title, equal at the attribute id of DIV for Title |
<private> String |
title
Title of this chart. |
<private> XMLObject |
XMLdata
a XMLObject instance where will extract data for chart. |
Attributs hérités de la classeComposantSVG |
frameId, id, width, height, blankFile
|
Sommaire des Constructeurs | |
ComposantChart
(frameId, divId, XMLdata, width, height, blankFile)
This class represent a SVG chart, with a title and a legend. |
Sommaire des Méthodes | |
Object
|
composantSVG(<String> frameId, <String> divId, <Number> width, <Number> height, <String> blankFile)
|
<private> void
|
createGraphique()
Generate and draw the core of SVG chart. |
<private> void
|
ecrireBind()
This method ecrireBind() of ComposantChart class permit to write the HTML code for the SVG chart. |
void
|
ecrireBindGraphe()
This method writeBindGraphe() of ComposantChart class permit to write the HTML code for the core of SVG chart. |
<private> void
|
ecrireBindLegende()
This method writeBindLegend() of ComposantChart class permit to write the HTML code for the legend of SVG chart. |
<private> void
|
ecrireBindTitle()
This method writeBindTitle() of ComposantChart class permit to write the HTML code for the title of SVG chart. |
color
|
getColor(<Integer> i)
Get a color at index of i or modulo |
<private> void
|
initData()
This method "initData()" override initData of ComposantChart class. |
void
|
setColors(<Array> colors)
Setter the colors attribute. |
void
|
update()
This method refresh data and redraw the chart. |
Méthodes héritées de la classe ComposantSVG |
initDivBind, getDocument, getSVGDocument, clear, show, hide, createTextNode, createElement
|
Détail des Attributs |
<private> Array colors
<private> Array dataset
<private> String divBindLegend
<private> String divBindTitle
<private> String title
<private> XMLObject XMLdata
Détail des Constructeurs |
ComposantChart(frameId, divId, XMLdata, width, height, blankFile)
frameId -
divId -
XMLdata -
width -
height -
blankFile -
Détail des Méthodes |
Object composantSVG(<String> frameId, <String> divId, <Number> width, <Number> height, <String> blankFile)
frameId - String
divId - String
width - Number
height - Number
blankFile - String
<private> void createGraphique()
<private> void ecrireBind()
void ecrireBindGraphe()
<private> void ecrireBindLegende()
<private> void ecrireBindTitle()
color getColor(<Integer> i)
i - Integer
index
<private> void initData()
void setColors(<Array> colors)
colors - Array
void update()
|
Framework JavaScript ACube V2.10.0 | ||||||||
CLASSE PRECEDENTE CLASSE SUIVANTE | CADRES SANS CADRES | ||||||||
SOMMAIRE: ATTR | CONSTR | METH | DETAIL: ATTR | CONSTR | METH |