-
Notifications
You must be signed in to change notification settings - Fork 81
Customization Use Cases
Charting Library allows you to customize its appearance, the way it displays data, default properties and lots of other things.
Customizations are client-side and server-side. Some of them are made through the constructor, other ones can be made using widget/chart methods.
Here is the single place where you can find most used customizations and links to their descriptions.
Change default symbol (instrument) and resolution (interval).
Minimum supported resolution is 1 second.
Change time range of bars for the default resolution
Change time range of bars when the resolution is changed by a user. Look at the sample here:
You can set what time zone is used by default. It can be changed by the user in the menu.
You can place the chart as en element on your web page or use fullscreen mode.
Customize colors of the chart so it perfectly fits in your site.
- Color of toolbars - documentation
- Color of the chart - documentation
- Limit amount of indicators for 1 chart layout - documentation
- Limit what indicators are displayed and can be added - documentation
- Add your own indicators calculated on a server - documentation
- Change default properties of indicators - documentation
- Change default properties on the fly - documentation
- Limit what drawings are displayed and can be added - documentation
- Change default properties of drawings - documentation
- Change default properties on the fly - documentation
Choose one of more than 20 translations of the library
Note: Language is set when the chart is created. It cannot be changed without recreating of a chart.
- Change decimal sign of numbers - documentation
- Set custom formatters for data and time - documentation
- Prices are formatted according to the symbol information - documentation
You can change any properties that present in the properties dialog.
- Initially - documentation
- On the fly - documentation
TradingView allows you to save snapshot on its servers, but if you wish you can change it.
If you don't need some elements of the chart (toolbars, buttons, other controls), you can hide them:
- Most of the chart elements can be shown/hidden by using Featuresets
- You can add your own CSS - documentation
Time frame is a time period of bars and a resolution preferred for displaying of the period. You can customize the list.
You can select what intervals and chart styles should be shown on the top toolbar by default. A user can change it if items_favoriting
is enabled in the Featuresets.
- Full list of resolution is provided in the configuration of the datafeed - documentation
- Resolutions are enabled or disabled in the list basing on the symbol information - documentation
- Initial list of favorite resolutions can be set - documentation
In spite of other indicators Volume is added by default if the instrument supports it (documentation). You can disable this behaviour using documentation.
You can add new elements to the context menu or hide existing items.
You can add your own buttons to the top toolbar of the chart.
It is possible to choose default symbols for the watch list and set read-only state if needed.
You can attach to any RSS feed and even select the feed depending on the instrument type.
- What is Charting Library
- Getting Started
- Data Binding
- Chart Customization
- Customization Overview
- Client-Side Customization
- Server-Side Customization
- Customization Use Cases
- Trading Terminal
- Saving/Loading Charts
- Creating Custom Studies
- Breaking changes in versions