Subsurface Syntax

Subsurface Syntax

The Streamlit Colour Picker: An Easy Way to Change Chart Colours on Your Streamlit Dashboard

Provide Your Dashboard Users with Greater Flexibility

Andy McDonald's avatar
Andy McDonald
Dec 20, 2022
∙ Paid

Provide Your Dashboard Users with Greater Flexibility

Photo by Steve Johnson: https://www.pexels.com/photo/person-s-index-finger-977246/

Streamlit is a popular and powerful Python-based open-source framework that lets you quickly and easily create interactive data science dashboards and deploy machine learning models.

One of the useful features of Streamlit is the colour picker tool. This allows you to add flexibility to your dashboard by letting users select any colour they want rather than using the default hard-coded colour.

This short tutorial will show you how easy it is to implement the Streamlit Colour Picker widget within a dashboard.

If you are new to Streamlit, then you may want to check out my previous Streamlit tutorials to get you off to a great start:

  • Getting Started With Streamlit Web Based Applications

  • Creating True Multi-Page Streamlit Apps — The New Way (2022)

  • Getting Started With Streamlit: 5 Functions You Need To Know When Starting Out

Installing Streamlit

If you haven’t alr…

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture