LightningChart JS Trader v.3 has been released!
This release contains new UI changes and features, new drawing tools, and more.
User Interface Changes
In this LightningChart JS Trader v3 release, we decided to improve how technical indicators are added to the charts. Previously, a separate chart was created below the main chart unless the indicator was an overlay.
Now, indicators added to the same chart are separated with a horizontal splitter line. Dragging the splitter line allows resizing the indicator segments and the main chart. This change also allows displaying drawing tools on the indicator segments.
Events
Various events have been added to the Trader library. They can be used by subscribing to them in code. The following events are now available:
- onXAxisRangeChanged/onYAxisRangeChanged – Triggers when the range of the respective axis changes for instance because of zooming or panning.
- onDataModified – Triggers when the current dataset is modified due to adding or removing data points or changing the whole dataset.
- onChartClicked – Triggers when the chart is clicked. The event returns the clicked point in screen coordinates and axis values, as well as the button used for the click.
- onDrawingToolMoved – All drawing tools have this event. It triggers when the position of the drawing tool is modified.
tradingChart.onChartClicked((e) => {
console.log('Clicked axis values: ' + e.axisX + ' ' + e.axisY)
})
Zooming and Panning
Zooming and panning behaviour has been reworked to be more in line with other trading platforms, and to allow more configuration options for the users.
- It is now possible to change how zooming and panning work, for example which axes are affected, and which mouse button is used for that particular action.
- Zooming and panning can now be restricted to the current dataset’s X- and Y-range.
- Double-clicking the chart now restores the default view (all added data visible).
- Zooming and panning are more segment specific when indicators have been added to the chart.
Zooming and panning configurations can be found under a new section in the settings menu. These settings can also be modified in code.
Background options
It is now possible to configure the background colors beyond the pre-defined themes. Solid color fill, linear and radial gradients, as well as image fill options are available. Background settings can be found in the Background section of the color settings menu.
Respective methods have been added to the code. Note that image fill can only be set in code. In addition, the glow effects on all chart elements can be switched on and off.
New Drawing Tools
Gann Box and Gann Fan drawing tools have been added to the library. They can be found under a new Gann tools category in drawing tool menu.
Gann Box
Gann Fan
Other changes
- Chart title can be hidden.
- Several menu elements can now be hidden.
- Correlation Coefficient indicator now works as intended.
Reading data from a .csv file via code is now done with loadCsvString and readCsvString methods. The former reads a csv file and loads it to the chart while the latter creates arrays based on the csv file but doesn’t add it to the chart. readCsvString can be found under HelperRoutines class.
Get LightningChart JS Trader
See more news
How to Set Up LightningChart JS in Cursor and Claude Code Using MCP, in Under 5 Minutes
A step-by-step guide to installing the LightningChart JS MCP server so your AI coding agent stops hallucinating chart APIs and starts writing production-ready code from the first prompt. AI coding agents are good at writing chart code. They are less good at writing...
The LightningChart JS Agent Skill: Give Any AI Coding Agent Accurate Charting Knowledge in 60 Seconds
An agent skill is a folder of instructions your AI coding tool picks up automatically. This one teaches any compatible agent how to use LightningChart JS correctly, before it writes a single line of chart code. Agent skills are a relatively new concept and the...
Why AI Coding Agents Get Data Visualization Wrong, and What to Do About It
AI coding assistants are getting good at most parts of application development. Data visualization is one of the areas where they still have a consistent, predictable failure mode. This article explains the mechanics of why it happens and the practical fix. I spent a...
LightningChart JS v9.0.0
Announcing LightningChart JS v9.0.0 In this release AI and agentic development: updated materials and MCP server Negative log axes and symlog charts Multi-threaded real-time streaming (10M data points per second) AreaRangeSeries rework DataSet follow mode DataSet...
