dotnetCHARTING Send comments on this topic.
Settings Property
See Also 
dotnetCHARTING Namespace > JsOptions Class : Settings Property


Gets or sets a dictionary containing additional JSChart properties and values to set before the JS chart renders. The string based key and value pair consists of a property path and value.

Syntax

Visual Basic (Declaration) 
Public Property Settings As Dictionary(Of String, String)
Visual Basic (Usage)Copy Code
Dim instance As JsOptions
Dim value As Dictionary(Of String, String)
 
instance.Settings = value
 
value = instance.Settings
C# 
public Dictionary<string, string> Settings {get; set;}

Remarks

This method takes only strings values, however, any type can be specified. If a value of "true" is passed, it will be a boolean in JS. To use a string with that value, use "'true'" with single quotes. The same applies to numbers. If a JS variable that holds the value in JS must be referenced, prefix the string with "js:". This will prevent quote wrapping and will be used in JS as is. For example, if in JS there is a variable defined as var colorRed = 'red'; to refer to this variable in a string setting server side, use "js:colorRed". This allows passing functions as well for cases like label callbacks. For example: "js:function(txt){return 'text:'+txt}"

See Also

© 2021 All Rights Reserved.