Seite 1 von 3

[Module] Chart - Gadget (vers. Diagramme)

Verfasst: 11.06.2019 20:17
von Thorsten1867
Chart Gadget - Module (all OS / 64Bit / DPI)

Erzeugen von Säulen-, Balken, Torten- und Kurvendiagrammen, Streudiagramm, sowie Diagramme mit Datenreihen:
  • Unterstützung von positiven und negativen Werten
  • automatische Berechnung der Balkenbreite (#PB_Default) und des Abstandes (#PB_Default) möglich
  • automatische Anpassung des Maximalwertes (#PB_Default) möglich
  • Anzeige von horizontalen Linien (Y-Achse) möglich
  • Anzeige von Werten, Prozenten oder Text im (bzw. über dem) Balken möglich
  • Unterstützung von Links-, Rechts- oder Doppelklick Events für Balken
  • automatische Größenanpassung des Gadgets
Bild

Code: Alles auswählen

; Chart::AddItem()             - similar to AddGadgetItem()
; Chart::AttachPopupMenu()     - attachs a popup menu to the chart
; Chart::DisableReDraw()       - disable/enable redrawing
; Chart::EventColor()          - returns the color after the event
; Chart::EventIndex()          - returns the item index after the event
; Chart::EventLabel()          - returns the item label after the event
; Chart::EventValue()          - returns the item value after the event
; Chart::Gadget()              - create a new gadget
; Chart::GetErrorMessage()     - get error message [DE/FR/ES/UK]
; Chart::GetItemColor()        - returns the color of the item
; Chart::GetItemLabel()        - get the label of the item
; Chart::GetItemState()        - similar to GetGadgetItemState()
; Chart::GetItemText()         - similar to GetGadgetItemText()
; Chart::GetLabelState()       - similar to GetGadgetItemState(), but 'label' instead of 'position'
; Chart::GetLabelColor()       - returns the color of the item
; Chart::RemoveItem()          - similar to RemoveGadgetItem()
; Chart::RemoveLabel()         - similar to RemoveGadgetItem(), but 'label' instead of 'position'
; Chart::SetAttribute()        - similar to SetGadgetAttribute()
; Chart::SetAutoResizeFlags()  - [#MoveX|#MoveY|#ResizeWidth|#ResizeHeight]
; Chart::SetColor()            - similar to SetGadgetColor()
; Chart::SetFlags()            - set flags for chart customization
; Chart::SetFont()             - similar to SetGadgetFont()
; Chart::SetItemState()        - similar to SetGadgetItemState()
; Chart::SetItemText()         - similar to SetGadgetItemText()
; Chart::SetLabelState()       - similar to SetGadgetItemState(), but 'label' instead of 'position'
; Chart::SetMargins()          - define top, left, right and bottom margin
; Chart::ToolTipText()         - defines the text for tooltips (#Percent$ / #Value$ / #Label$ / #Serie$)
; Chart::UpdatePopupText()     - updates the menu item text before the popup menu is displayed

; --- Data Series ---

; Chart::AddDataSeries()       - add a new data series
; Chart::AddSeriesItem()       - add a new item to the data series
; Chart::DisplayDataSeries()   - displays the data series
; Chart::EventDataSeries()     - returns the value of the item by index
; Chart::GetSeriesColor()      - returns the color of the data series
; Chart::GetSeriesItemState()  - returns the value of the item by index
; Chart::GetSeriesLabelState() - returns the value of the item by label
; Chart::RemoveSeriesItem()    - removes the item by index
; Chart::RemoveSeriesLabel()   - removes the item by label
; Chart::RemoveDataSeries()    - removes the data series
; Chart::SetSeriesItemState()  - sets the value of the item by index
; Chart::SetSeriesLabelState() 

; --- Scatter Plot ---

; Chart::AddScatterPlot()       - add a new scatter plot
; Chart::AddScatterItem()       - add a new item to the scatter plot
; Chart::DisplayScatterPlot()   - displays the scatter plot
; Chart::EventScatterPlot()     - returns the label of the scatter plot after the event
; Chart::EventDataX()           - returns dataX after the event 
; Chart::EventDataY()           - returns dataY after the event 
; Chart::GetScatterColor()      - returns the color of the scatter plot
; Chart::GetScatterItem()       - returns the value of the item by index [#DataX/#DataY]
; Chart::GetScatterLabelData()  - returns the value of the item by label [#DataX/#DataY]
; Chart::RemoveScatterPlot()    - removes the item by index
; Chart::RemoveScatterItem()    - removes the item by label
; Chart::RemoveScatterLabel()   - removes the data series
; Chart::SetScatterItem()       - sets the values of the item by index
; Chart::SetScatterLabelData()  - sets the values of the item by label
Download: ChartModule.pbi

Re: [Module] Bar Chart - Gadget (Säulendiagramm)

Verfasst: 12.06.2019 17:52
von Thorsten1867
Update:
  • Hinzugefügt: Unterstützung negativer Werte
  • Hinzugefügt: Attribut '#AdjustMaximum' (#True/#False) um den Maximumwert anzupassen, wenn notwendig. (= Default)
  • Hinzugefügt: Attribut '#ScaleSpacing' (#Single/#Double) für die automatische Berechnung der Anzahl der Skalenstriche.
Bild

Re: [Module] Bar Chart - Gadget (Säulendiagramm)

Verfasst: 16.06.2019 19:32
von Thorsten1867
Update:
  • Added: Pie Charts
Bild

( Herauszufinden, ob die Maus in einen Kreissektor geklickt hat, war eine echte mathematische Herausforderung. 8) )

Re: [Module] Chart - Gadget (Kreis- & Säulendiagramm)

Verfasst: 16.06.2019 20:43
von Nino
Hallo,

ich habe das Modul noch nicht ausprobiert, aber die Diagramme hier im Thread sehen gut aus! :allright:

Wird bei den Säulendiagrammen auch die Darstellung mehrerer Datenreihen unterstützt (wie z.B. hier auf den Bildern zu sehen)?
Das wäre für einen Einsatz im professionellen (z.B. wissenschaftlichen) Bereich nötig.

Re: [Module] Chart - Gadget (Kreis- & Säulendiagramm)

Verfasst: 18.06.2019 11:46
von Thorsten1867
Update:
  • Diagramm für Datenreihen hinzugefügt
  • Unterstützung für Popupmenüs (Chart & Legende) mit automatischer Aktualisierung der Menüitemtexte (z.B. #Label$ / #Series$)
  • vereinfachte Bereitstellung von Eventdaten
  • SetAttribute() teilweise durch SetFlags() ersetzt.
Bild

Re: [Module] Chart - Gadget (Kreis- & Säulendiagramm)

Verfasst: 18.06.2019 15:59
von Thorsten1867
Update: Balkendiagramm (also: horizontale Balken)

Bild

Re: [Module] Chart - Gadget (vers. Diagramme)

Verfasst: 19.06.2019 11:37
von Thorsten1867
Update: Kurvendiagramm

Bild

Re: [Module] Chart - Gadget (vers. Diagramme)

Verfasst: 19.06.2019 11:47
von Andesdaf
Schöne Sache, danke :allright:

Re: [Module] Chart - Gadget (vers. Diagramme)

Verfasst: 19.06.2019 12:18
von RSBasic
+1 :allright:

Re: [Module] Chart - Gadget (vers. Diagramme)

Verfasst: 19.06.2019 18:51
von Thorsten1867
Update: Kurvendiagramm in Kombination mit Datenreihen

Bild