widget_chart

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignGroupTimeRange

func AlignGroupTimeRange(groupTimeRange int64) int64

Types

type ChartSettings

type ChartSettings struct {
	Areas []*ChartSettingsArea `json:"areas"`
}

type ChartSettingsArea

type ChartSettingsArea struct {
	UnitedScale   bool                   `json:"united_scale"`
	ShowQualities bool                   `json:"show_qualities"`
	Series        []*ChartSettingsSeries `json:"series"`
}

type ChartSettingsSeries

type ChartSettingsSeries struct {
	Item  string `json:"item"`
	Color string `json:"color"`
}

type DocumentChartItem

type DocumentChartItem struct {
	Window uiinterfaces.Window
	// contains filtered or unexported fields
}

func NewDocumentChartItem

func NewDocumentChartItem(window uiinterfaces.Window, chart *timechart.TimeChart, area *timechart.Area, name string, client *client.Client) *DocumentChartItem

func (*DocumentChartItem) Clean

func (c *DocumentChartItem) Clean()

func (*DocumentChartItem) Dispose

func (c *DocumentChartItem) Dispose()

func (*DocumentChartItem) GetData

func (c *DocumentChartItem) GetData(key string, minTime, maxTime int64, groupTimeRange int64) ([]*timechart.Value, string)

func (*DocumentChartItem) GetLoadingDiapasons added in v1.0.6

func (c *DocumentChartItem) GetLoadingDiapasons() []timechart.LoadingDiapason

func (*DocumentChartItem) GetUOM added in v1.0.6

func (c *DocumentChartItem) GetUOM() string

type DocumentChartValues

type DocumentChartValues struct {
	// contains filtered or unexported fields
}

func (*DocumentChartValues) Dispose

func (c *DocumentChartValues) Dispose()

func (*DocumentChartValues) GetData

func (c *DocumentChartValues) GetData(minTime, maxTime int64) ([]*timechart.Value, string)

type LoadingTask

type LoadingTask struct {
	// contains filtered or unexported fields
}

type TimeRange

type TimeRange struct {
	// contains filtered or unexported fields
}

type WidgetCharts

type WidgetCharts struct {
	uicontrols.Panel
	// contains filtered or unexported fields
}

func NewWidgetCharts

func NewWidgetCharts(parent uiinterfaces.Widget, client *client.Client) *WidgetCharts

func (*WidgetCharts) AddItem added in v1.0.6

func (c *WidgetCharts) AddItem(id string)

func (*WidgetCharts) AddSeries

func (c *WidgetCharts) AddSeries(name string, area *timechart.Area) *timechart.Series

func (*WidgetCharts) Dispose

func (c *WidgetCharts) Dispose()

func (*WidgetCharts) IsActive added in v1.0.5

func (c *WidgetCharts) IsActive() bool

func (*WidgetCharts) Load

func (c *WidgetCharts) Load(data []byte)

func (*WidgetCharts) OnInit

func (c *WidgetCharts) OnInit()

func (*WidgetCharts) Save

func (c *WidgetCharts) Save() []byte

func (*WidgetCharts) SetDataItems

func (c *WidgetCharts) SetDataItems(items []string)

func (*WidgetCharts) SetEdit

func (c *WidgetCharts) SetEdit(editing bool)

func (*WidgetCharts) SetIsActive added in v1.0.5

func (c *WidgetCharts) SetIsActive(isActive bool)

func (*WidgetCharts) SetOnChartContextMenuNeed

func (c *WidgetCharts) SetOnChartContextMenuNeed(OnChartContextMenuNeed func(timeChart *timechart.TimeChart, area *timechart.Area, areaIndex int) uiinterfaces.Menu)

func (*WidgetCharts) SetShowQualities

func (c *WidgetCharts) SetShowQualities(showQualities bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL