![]() This property allows you to add your own css class to the x-axis labels which you can then use for styling purposes or to make retrieving the span tags easier (the dom elements). This property controls how the labels are arranged - section for most chart types and edge for Line charts. For example, you could set this to 45 to get angled labels. When using formatted labels this is the number of decimals that are applied to the % macro. This allows you finer-grained control in the vertical direction over the X label positioning if you need it. This allows you finer-grained control in the horizontal direction over the X label positioning if you need it. You can also give this option a string if you prefer and use formatted labels. The number of tickmarks that are shown on the x-axis.Īn array of the labels to be used on the chart. Whether the last tickmark on the right is displayed. Whether the last tickmark on the left is displayed. ![]() The color of the x-axis (and its tickmarks. The linewidth used for the x-axis and the x-axis tickmarks. If you wish to show negative values then you should set this to center or top or you can now (Jul 2016) use an offset x-axis by leaving this property at the default bottom and using the yaxisScaleMax and yaxisScaleMin properties. This determines where the x-axis is positioned. Set this to true if you don't want an x-axis. If you want to you can specify the height of the image. If you want to you can specify the width of the image. If you want to you can specify the Y coordinate of the image. If you want to you can specify the X coordinate of the image. This is a string that can contain the words: top bottom left right. If you want to specify a background image to use on your chart, specify it with this property. If you want that then you could alternatively simply apply a css background color to the canvas tag. If you want to have a single background color for your chart you can use this. ![]() The units correspond to your scale and are the starting point and the height. Eg: obj.set('backgroundHbars',, ]) This would give you two bars, one red and a lower yellow bar. This takes precedence over dashed lines.Īn array of information stipulating horizontal colored bars. If you want to have your background grid dotted then set this to true. If you want to have your background grid dashed then set this to true. When using autofit this allows you to specify how many horizontal gridlines you want. Decimals (eg 0.5) are permitted.ĭetermines whether a border is drawn around the grid.ĭetermines whether to draw the horizontal gridlines.ĭetermines whether to draw the vertical gridlines. The width that the background grid lines are. Whether to show the background grid or not. The color of the background bars, (2 of 2). The color of the background bars, (1 of 2). You can set them by including them in the options section of the You can use these properties to control how the chart appears. Title: 'Each salespersons sales/returns totals',
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |