> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Chart Style

Custom Chart Styles can be used on charts to present bars information in a different visual representation. The methods and properties covered in this section are unique to custom Chart Style development. Following is an index of properties and methods documented for Chart Styles.

## Methods and Properties

| Name                                                                                          | Description                                                                                          |
| --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [BarWidth](/developer/desktop-sdk/references/chart-style/barwidth)                            | The painted width of a ChartStyle bar                                                                |
| [BarWidthUI](/developer/desktop-sdk/references/chart-style/barwidthui)                        | The Bar width value which displays on the UI                                                         |
| [ChartStyleType](chartstylestype)                                                             | Defines a unique identifier value used to register a custom ChartStyle                               |
| [DownBrush](/developer/desktop-sdk/references/chart-style/downbrush)                          | A Brush object used to determine the color to paint the down bars for the ChartStyle                 |
| [DownBrushDX](/developer/desktop-sdk/references/chart-style/downbrushdx)                      | A SharpDX.Brush object used to paint the down bars for the ChartStyle                                |
| [GetBarPaintWidth()](/developer/desktop-sdk/references/chart-style/getbarpaintwidth)          | Returns the painted width of the chart bar                                                           |
| [IsTransparent](/developer/desktop-sdk/references/chart-style/istransparent)                  | Indicates the bars in the ChartStyle are transparent                                                 |
| [OnRender()](/developer/desktop-sdk/references/chart-style/chartstyle-onrender)               | An event driven method used to render content to a ChartStyle                                        |
| [SetPropertyName()](/developer/desktop-sdk/references/chart-style/setpropertyname-chartstyle) | Sets a default property name to a custom string to be displayed on the UI                            |
| [TransformBrush()](/developer/desktop-sdk/references/chart-style/transformbrush)              | Scales a non-solid color brush used for rendering the chart style to properly display in NinjaTrader |
| [UpBrush](/developer/desktop-sdk/references/chart-style/upbrush)                              | A Brush object used to determine the color to paint the up bars for the ChartStyle                   |
| [UpBrushDX](/developer/desktop-sdk/references/chart-style/upbrushdx)                          | A SharpDX.Brush object used to paint the up bars for the ChartStyle                                  |