Skip to the content.

PromptPlus API:IControlChartBar

Build Publish License NuGet Downloads

Back to List Api

IControlChartBar

Namespace: PPlus.Controls

Represents the interface with all Methods of the ChartBar control

public interface IControlChartBar : IPromptControls<Boolean>

Implements IPromptControls<Boolean>

Methods

AddItem(String, Double, Nullable<Color>)

Add item to ChartBar

IControlChartBar AddItem(string label, double value, Nullable<Color> colorbar)

Parameters

label String
Label Item to add

value Double
Value to Item

colorbar Nullable<Color>
The Color bar.
If not informed, the color bar will be chosen in descending sequence from 15 to 0 and then back to 15.

Returns

IControlChartBar

BarType(ChartBarType)

Define type Bar to ChartBar.

IControlChartBar BarType(ChartBarType value)

Parameters

value ChartBarType
The ChartBarType. Default value ‘ChartBarType.Fill’

Returns

IControlChartBar

Config(Action<IPromptConfig>)

Custom config the control.

IControlChartBar Config(Action<IPromptConfig> context)

Parameters

context Action<IPromptConfig>
Action to apply changes. IPromptConfig

Returns

IControlChartBar

Culture(CultureInfo)

CultureInfo to on show value format.

IControlChartBar Culture(CultureInfo value)

Parameters

value CultureInfo
CultureInfo to use

Returns

IControlChartBar

Culture(String)

CultureInfo to show value format.
Default value is global Promptplus Cultureinfo

IControlChartBar Culture(string value)

Parameters

value String
Name of CultureInfo to use

Returns

IControlChartBar

EnabledInteractionUser(Boolean, Boolean, Boolean)

Enabled Interaction to switch Layout , Legend and order when browse the charts / Legends.

IControlChartBar EnabledInteractionUser(bool switchType, bool switchLegend, bool switchorder)

Parameters

switchType Boolean
Enabled switch Layout

switchLegend Boolean
Enabled switch legend

switchorder Boolean
Enabled switch Ordination

Returns

IControlChartBar

FracionalDig(Int32)

Define the Fracional Digits of value to show. Default is 0.

IControlChartBar FracionalDig(int value)

Parameters

value Int32
Fracional Digits

Returns

IControlChartBar

HideOrdination(Boolean)

Hide info of ordination labels

IControlChartBar HideOrdination(bool value)

Parameters

value Boolean
Hide info of ordination labels.

Returns

IControlChartBar

HidePercent(Boolean)

Hide Percent in bar.Default false

IControlChartBar HidePercent(bool value)

Parameters

value Boolean
Hide Percent

Returns

IControlChartBar

HideValue(Boolean)

Hide value in bar.Default false

IControlChartBar HideValue(bool value)

Parameters

value Boolean
Hide value

Returns

IControlChartBar

HotKeySwitchLegend(HotKey)

Overwrite a HotKey to Switch Legend Chart when EnabledInteractionUser is active. Default value is ‘F3’

IControlChartBar HotKeySwitchLegend(HotKey value)

Parameters

value HotKey
The HotKey to Switch Legend Chart

Returns

IControlChartBar

HotKeySwitchOrder(HotKey)

Overwrite a HotKey to Switch ordination bar and label when EnabledInteractionUser is active. Default value is ‘F4’

IControlChartBar HotKeySwitchOrder(HotKey value)

Parameters

value HotKey
The HotKey to Switch ordination bar and label

Returns

IControlChartBar

HotKeySwitchType(HotKey)

Overwrite a HotKey to Switch Layout Chart when EnabledInteractionUser is active. Default value is ‘F2’

IControlChartBar HotKeySwitchType(HotKey value)

Parameters

value HotKey
The HotKey to Switch Layout Chart

Returns

IControlChartBar

Interaction<T1>(IEnumerable<T1>, Action<IControlChartBar, T1>)

Execute a action foreach item of colletion passed as a parameter

IControlChartBar Interaction<T1>(IEnumerable<T1> values, Action<IControlChartBar, T1> action)

Type Parameters

T1
Layout external colletion

Parameters

values IEnumerable<T1>
Colletion for interaction

action Action<IControlChartBar, T1>
Action to execute

Returns

IControlChartBar

Layout(LayoutChart)

Define layout to ChartBar.

IControlChartBar Layout(LayoutChart value)

Parameters

value LayoutChart
The LayoutChart. Default value ‘LayoutChart.Standard’

Returns

IControlChartBar

OrderBy(ChartOrder)

Sort bars and labels

IControlChartBar OrderBy(ChartOrder chartOrder)

Parameters

chartOrder ChartOrder
The sort type

Returns

IControlChartBar

PageSize(Int32)

Set max.item view per page when EnabledInteractionUser is active
Default value : 10.The value must be greater than or equal to 1

IControlChartBar PageSize(int value)

Parameters

value Int32
Number of Max.items

Returns

IControlChartBar

ShowLegends(Boolean, Boolean)

Show Legends after ChartBar

IControlChartBar ShowLegends(bool withvalue, bool withPercent)

Parameters

withvalue Boolean
Show value in legend

withPercent Boolean
Show Percent in legend

Returns

IControlChartBar

Styles(ChartStyles, Style)

Overwrite Styles

IControlChartBar Styles(ChartStyles styletype, Style value)

Parameters

styletype ChartStyles
ChartStyles of content

value Style
The Style

Returns

IControlChartBar

TitleAlignment(Alignment)

Define Tille Alignment.

IControlChartBar TitleAlignment(Alignment value)

Parameters

value Alignment
The Alignment title

Returns

IControlChartBar

Width(Int32)

Define Width to ChartBar. Default value is 80.The value must be greater than or equal to 10.

IControlChartBar Width(int value)

Parameters

value Int32
Width

Returns

IControlChartBar


Back to List Api