Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Build Visually Stunning Dashboards And More With Bokeh Python Library In Delphi And C++

Do you want to build an elegant, concise construction of versatile graphics, and affords high-performance interactivity over large or streaming datasets applications in Delphi/C++ builder?  Don’t know where to start with? Don’t worry, with the help of Python4Delphi we can quickly and easily make interactive plots, dashboards, and data applications using Bokeh Python Library. This post helps to understand with sample Python script.

Delphi itself offers a number of advanced charting libraries. TeeChart is a third party chart bundled with the RAD Studio installation. If you have an existing Python application and you need to create charts you could use the Bokeh library or you could send the data to Delphi and create the chart there. Alternately, you could create the chart via Bokeh and then display it in the Delphi Windows GUI app. You can use Python4Delphi a number of different ways such as:

Prerequisites.

[crayon-673fbc14754ad223734482/]

Bokeh is an interactive visualization library for modern web browsers. Bokeh exposes two interface levels to users:

Bokeh Python Library sample script details: Plotting data in basic Python lists as a line plot, including zoom, pan, save, and other tools, is simple and straightforward:

Steps three and four can be repeated to create more than one plot.

[crayon-673fbc14754b8027255955/]
<strong>Bokeh Python Library Demo<strong>

Note: Samples used for demonstration were picked from here. You can much more with this library from Providing Data Directly, Creating Layouts, Visualizing Network Graphs, and much more. You can check the APIs and some more samples from the same place. It’s mandatory to include the below code to avoid exceptions. To know more about MaskFPUExceptions check here.

[crayon-673fbc14754bc502320121/]

You have read the quick overview of Bokeh library, download this library from here and build your dashboards, interactive plots in your applications. Check out Python4Delphi and easily build Python GUIs for Windows using Delphi.

Exit mobile version