StockGraph
Type class
StockGraph displays graphs on StockPanel.
Sources
This information about StockGraph is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
StockGraph extends AmGraph.
StockGraph is not extended by any other symbol.
Properties
comparableType
booleanDefaultfalseSpecifies whether this graph will be compared if some data set is selected for comparing.
compareFieldType
stringDefaultSpecifies a field to be used to generate comparing graph. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object.
compareFromStartType
booleanDefaultfalseIf you set it to true, when data sets are compared, the graphs will use first value as a base value instead of using the first value of selected period.
compareGraphBalloonColorType
stringDefaultBalloon color of comparing graph.
compareGraphBalloonTextType
stringDefaultBalloon text of comparing graph.
compareGraphBulletType
stringDefaultBullet of comparing graph. Possible values are: "square", "round", "line", "triangleUp", "triangleDown", "dashedLine", "bubble".
compareGraphBulletSizeType
numberDefaultBullet size of comparing graph.
compareGraphCornerRadiusTopType
numberDefaultCorner radius of comparing graph (if type is "column").
compareGraphDashLengthType
numberDefaultDash length of compare graph.
compareGraphFillAlphasType
numberDefaultFill alpha of comparing graph.
compareGraphFillColorsType
stringDefaultFill color of comparing graph.
compareGraphLineAlphaType
numberDefaultOpacity of comparing graph line.
compareGraphLineThicknessType
numberDefaultThickness of compare graph.
compareGraphTypeType
stringDefault"line"Type of comparing graph. Possible values are: "line", "column", "step", "smoothedLine."
compareGraphVisibleInLegendType
booleanDefaulttrueSpecifies if compare graph is visible in legend.
periodValueType
stringDefault"Close"When data is grouped to periods, the graph must know which period value should be used. Possible values are: "Open", "Low", "High", "Close", "Average" and "Sum".
useDataSetColorsType
booleanDefaulttrueSpecifies whether data set color should be used as this graph's lineColor.
72 inherited items
alphaFieldType
stringDefaultInherited fromAmGraphName of the alpha field in your dataProvider.
balloonColorType
stringDefaultInherited fromAmGraphValue balloon color. Will use graph or data item color if not set.
balloonTextType
stringDefault[[value]]Inherited fromAmGraphBalloon text. You can use tags like
value,description,percents,open,categorybaloonFunctionType
FunctionInherited fromAmGraphIf you set some function, the graph will call it and pass GraphDataItem and AmGraph object to it. This function should return a string which will be displayed in a balloon.
behindColumnsType
booleanDefaultfalseInherited fromAmGraphSpecifies if the line graph should be placed behind column graphs
bulletType
stringDefaultnoneInherited fromAmGraphType of the bullets. Possible values are: "none", "round", "square", "triangleUp", "triangleDown", "bubble", "custom".
bulletAlphaType
numberDefault1Inherited fromAmGraphOpacity of bullets. Value range is 0 - 1.
bulletBorderAlphaType
numberDefault1Inherited fromAmGraphBullet border opacity.
bulletBorderColorType
stringDefaultInherited fromAmGraphBullet border color. Will use lineColor if not set.
bulletBorderThicknessType
numberDefault2Inherited fromAmGraphBullet border thickness.
bulletColorType
stringDefaultInherited fromAmGraphBullet color. Will use lineColor if not set.
bulletFieldType
stringDefaultInherited fromAmGraphName of the bullet field in your dataProvider.
bulletOffsetType
numberDefault0Inherited fromAmGraphBullet offset. Distance from the actual data point to the bullet. Can be used to place custom bullets above the columns.
bulletSizeType
numberDefault8Inherited fromAmGraphBullet size.
bulletSizeFieldType
stringDefaultInherited fromAmGraphName of the bullet size field in your dataProvider.
closeFieldType
stringDefaultInherited fromAmGraphName of the close field (used by candlesticks and ohlc) in your dataProvider.
colorType
stringDefaultInherited fromAmGraphColor of value labels. Will use chart's color if not set.
colorFieldType
stringDefaultInherited fromAmGraphName of the color field in your dataProvider.
connectType
booleanDefaulttrueInherited fromAmGraphSpecifies whether to connect data points if data is missing. The default value is true.
cornerRadiusTopType
numberDefault0Inherited fromAmGraphCorner radius of column. It can be set both in pixels or in percents. The chart's depth and angle styles must be set to 0. The default value is 0. Note, cornerRadiusTop will be applied for all corners of the column, JavaScript charts do not have a possibility to set separate corner radius for top and bottom. As we want all the property names to be the same both on JS and Flex, we didn't change this too.
cursorBulletAlphaType
numberDefault1Inherited fromAmGraphIf bulletsEnabled of ChartCurosor is true, a bullet on each graph follows the cursor. You can set opacity of each graphs bullet. In case you want to disable these bullets for a certain graph, set opacity to 0.
customBulletType
stringDefaultInherited fromAmGraphPath to the image of custom bullet.
customBulletFieldType
stringDefaultInherited fromAmGraphName of the custom bullet field in your dataProvider.
dashLengthType
numberDefault0Inherited fromAmGraphDash length. If you set it to a value greater than 0, the graph line will be dashed.
descriptionFieldType
stringDefaultInherited fromAmGraphName of the description field in your dataProvider.
fillAlphasType
numberDefault0Inherited fromAmGraphOpacity of fill. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used.
fillColorsType
String/ArrayDefaultInherited fromAmGraphFill color. Will use lineColor if not set.
fillColorsFieldType
stringDefaultInherited fromAmGraphName of the fill colors field in your dataProvider.
fillToGraphType
AmGraphInherited fromAmGraphYou can set another graph here and if fillAlpha is >0, the area from this graph to fillToGraph will be filled (instead of filling the area to the X axis).
fontSizeType
numberDefaultInherited fromAmGraphSize of value labels text. Will use chart's fontSize if not set.
gradientOrientationType
stringDefaultverticalInherited fromAmGraphOrientation of the gradient fills (only for "column" graph type). Possible values are "vertical" and "horizontal".
Type
booleanDefaultfalseInherited fromAmGraphSpecifies whether the graph is hidden. Do not use this to show/hide the graph, use hideGraph(graph) and showGraph(graph) methods instead.
hideBulletsCountType
numberDefault0Inherited fromAmGraphIf there are more data points than hideBulletsCount, the bullets will not be shown. 0 means the bullets will always be visible.
highFieldType
stringDefaultInherited fromAmGraphName of the high field (used by candlesticks and ohlc) in your dataProvider.
includeInMinMaxType
booleanDefaulttrueInherited fromAmGraphWhether to include this graph when calculating min and max value of the axis.
labelColorFieldType
stringInherited fromAmGraphName of label color field in data provider.
labelPositionType
stringDefaulttopInherited fromAmGraphPosition of value label. Possible values are: "bottom", "top", "right", "left", "inside", "middle". Sometimes position is changed by the chart, depending on a graph type, rotation, etc.
labelTextType
stringDefaultInherited fromAmGraphValue label text. You can use tags like
value,description,percents,open,category.legendAlphaType
numberDefaultInherited fromAmGraphLegend marker opacity. Will use lineAlpha if not set. Value range is 0 - 1.
legendColorType
stringDefaultInherited fromAmGraphLegend marker color. Will use lineColor if not set.
legendValueTextType
stringDefaultInherited fromAmGraphLegend value text. You can use tags like
value,description,percents,open,categoryYou can also use custom fields from your dataProvider. If not set, uses Legend's valueText.lineAlphaType
numberDefault1Inherited fromAmGraphOpacity of the line (or column border). Value range is 0 - 1.
lineColorType
stringDefaultInherited fromAmGraphColor of the line (or column border). If you do not set any, the color from [[AmCoordinateChart
lineColorFieldType
stringDefaultInherited fromAmGraphName of the line color field (used by columns and candlesticks only) in your dataProvider.
lineThicknessType
numberDefault1Inherited fromAmGraphSpecifies thickness of the graph line (or column border).
lowFieldType
stringDefaultInherited fromAmGraphName of the low field (used by candlesticks and ohlc) in your dataProvider.
markerTypeType
stringDefaultInherited fromAmGraphLegend marker type. You can set legend marker (key) type for individual graphs. Possible values are: "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble".
maxBulletSizeType
numberDefault50Inherited fromAmGraphSpecifies size of the bullet which value is the biggest (XY chart).
minBulletSizeType
numberDefault0Inherited fromAmGraphSpecifies minimum size of the bullet (XY chart).
negativeBaseType
numberDefault0Inherited fromAmGraphIf you use different colors for your negative values, a graph below zero line is filled with negativeColor. With this property you can define a different base value at which colors should be changed to negative colors.
negativeFillAlphasType
numberDefaultInherited fromAmGraphFill opacity of negative part of the graph. Will use fillAlphas if not set.
negativeFillColorsType
String/ArrayDefaultInherited fromAmGraphFill color of negative part of the graph. Will use fillColors if not set.
negativeLineColorType
stringDefaultInherited fromAmGraphColor of the line (or column) when the values are negative. In case the graph type is candlestick or ohlc, negativeLineColor is used when close value is less then open value.
numberFormatterType
objectDefaultInherited fromAmGraphExample: {precision:-1, decimalSeparator:'.', thousandsSeparator:','}. The graph uses this object's values to format the numbers. Uses chart's numberFormatter if not defined.
openFieldType
stringDefaultInherited fromAmGraphName of the open field (used by floating columns, candlesticks and ohlc) in your dataProvider.
pointPositionType
stringDefaultmiddleInherited fromAmGraphSpecifies where data points should be placed - on the beginning of the period (day, hour, etc) or in the middle (only when parseDates property of categoryAxis is set to true). This setting affects Serial chart only. Possible values are "start" and "middle".
showAllValueLabelsType
booleanDefaultfalseInherited fromAmGraphIf graph's type is column and labelText is set, graph hides labels which do not fit into the column's space. If you don't want these labels to be hidden, set this to true.
showBalloonType
booleanDefaulttrueInherited fromAmGraphSpecifies whether the value balloon of this graph is shown when mouse is over data item or chart's indicator is over some series.
showBalloonAtType
stringDefaultcloseInherited fromAmGraphSpecifies graphs value at which cursor is showed. This is only important for candlestick and ohlc charts, also if column chart has "open" value. Possible values are: "open", "close", "high", "low".
showHandOnHoverType
booleanDefaultfalseInherited fromAmGraphIf you want mouse pointer to change to hand when hovering the graph, set this property to true.
stackableType
booleanDefaulttrueInherited fromAmGraphIf the value axis of this graph has stack types like "regular" or "100%" You can exclude this graph from stacking.
titleType
stringDefaultInherited fromAmGraphGraph title.
typeType
stringDefaultlineInherited fromAmGraphType of the graph. Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc". XY and Radar charts can only display "line" type graphs.
urlFieldType
stringDefaultInherited fromAmGraphName of the url field in your dataProvider.
urlTargetType
stringDefaultInherited fromAmGraphTarget to open URLs in, i.e. _blank, _top, etc.
valueAxisType
ValueAxisDefaultInherited fromAmGraphSpecifies which value axis the graph will use. Will use the first value axis if not set.
valueFieldType
stringDefaultInherited fromAmGraphName of the value field in your dataProvider.
visibleInLegendType
booleanDefaulttrueInherited fromAmGraphSpecifies whether this graph should be shown in the Legend.
xAxisType
ValueAxisDefaultInherited fromAmGraphXY chart only. A horizontal value axis object to attach graph to.
xFieldType
stringDefaultInherited fromAmGraphXY chart only. Name of the x field in your dataProvider.
yAxisType
ValueAxisDefaultInherited fromAmGraphXY chart only. A vertical value axis object to attach graph to.
yFieldType
stringDefaultInherited fromAmGraphXY chart only. Name of the y field in your dataProvider.
Methods
2 inherited items
Events
StockGraph does not have any events.