LightningChart Python v 2.2 is out now!
Introducing new product features with richer UI controls for building more responsive dashboards.
New features
This release expands LightningChart Python’s interactive toolkit with richer UI controls, deeper cursor customization, and smarter data interrogation. You can now build more responsive dashboards using toggleable CheckBox and momentary ButtonBox actions, customize cursors end‑to‑end, and read back component state with new getter methods.
We also added workflow helpers like swap_axes for dynamic layouts and solve_nearest for programmatic picking. That helps you to make advanced interactions easier to build and maintain.
Cursor
LightningChart Python now supports full cursor customization. Cursor modes are now easier to understand and easier to control. You can enable/disable them, restyle them, or even replace the built-in cursor with manual cursors that you move programmatically.
We also added full styling APIs for all the cursor parts: point marker, crosshair grid lines, axis tick markers, and the result table. You can customize things like fonts, borders, gradients, auto-fit, plus margin/origin positioning.
Cursor now supports HTML-capable formatting callbacks, and you can also apply per-series overrides. This means your tooltip can show rich content like KPIs, status badges, or extra metadata that depends on the series or chart type.
Manual cursors are now first-class features. You can create multiple cursors, move them based on events, and use them for custom annotations that are independent from the hover cursor.
Pointable TextBox
Add interactive callout annotations with built-in directional pointers. PointableTextBox extends the standard TextBox with arrow/pointer functionality, perfect for highlighting specific data points, creating tooltips, or adding explanatory annotations that visually connect to chart elements.
CheckBox
Add persistent, toggleable UI switches directly on charts and dashboards. CheckBox keeps its on/off state after click, supports text, styling, background, and pointer events, and is ideal for options like “Show grid” or “Enable cursor.”
ButtonBox
Add momentary action buttons with automatic bounce‑back behavior. ButtonBox uses the same API and styling as CheckBox, but it resets to “off” after each press. That makes it perfect for one‑shot actions like “Reset view” or “Apply filter.”
Other Improvements
There are three major improvements in this release: tick labels methods, heatmap flat array input, and better palette coloring methods. Here’s the summary:
Getter Methods
We’ve expanded the Python API with new getter methods, making it easy to read back the current state and styling at runtime. This improves debugging, lets you sync UI with external controls, and enables state-aware interactions without manual tracking.
Swap Axis
Swap two axes on the same plane (X↔X or Y↔Y) to quickly re-arrange axis placement and stacks without rebuilding the chart. This feature is useful for dynamic layouts or multi-axis dashboards.
Solve Nearest Data
Programmatically query the nearest/pointed data at a given screen coordinate, with modes like nearest, pointed, or all-series. Ideal for custom tooltips, picking, and cross-hair style interactions.
Get LightningChart Python 2.2
Ready to start with LightningChart Python data visualization library? Select from Data Scientist or Software Developer licenses, and get started developing Python projects at the best performance.
See more news
Which JavaScript Chart Library Do AI Coding Agents Actually Recommend, and Does It Matter?
In this article Why AI coding agents have strong library preferences What the defaults actually are (and the data behind them) When the defaults work fine When they quietly fail you What to do instead: giving your agent better information The keyword angle nobody is...
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...
