How to add color-picker in Bokeh? Last Updated : 31 Aug, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we are going to see how to add a color picker widget in bokeh. Widgets are the best way to make charts more interactive. We can also add widgets in the Bokeh application to provide the best front-end user visualization. Using widgets we can do many things like update charts, connect to other programmatic functionality. One of the widgets is the color picker. Creating a color picker for the line chart in bokeh: Python3 # displaying the chart from bokeh.io import show from bokeh.layouts import column # importing colorpicker model from bokeh from bokeh.models import ColorPicker # plotting the figure from bokeh.plotting import Figure plot = Figure(x_range=(0, 1), y_range=(0, 1), plot_width=350, plot_height=350) line = plot.line(x=(0,1), y=(0,1), color="black", line_width=4) picker = ColorPicker(title="Line Color") picker.js_link('color', line.glyph, 'line_color') show(column(plot, picker)) Output: Color Picker in Bokeh We plot a line chart with a color picker. Here we have explicitly specifies the line chart color 'black'. The color of the line is by default 'blue' of a line chart. We can choose any color from the color picker and change our line chart color. Here I have chosen green color. Green color Line Chart - with color picker Comment More infoAdvertise with us Next Article How to Use the Color Picker Tool in Figma? K kashishrastogi2000 Follow Improve Article Tags : Python Python-Bokeh Practice Tags : python Similar Reads How to Add Color Bars in Bokeh? Bokeh is one of the promising libraries of Python in recent times. It provides high performance and efficiency in data visualizations. One of the big advantages of bokeh is that we can get the output file in various formats such as HTML, notebooks etc. In this article, we will be learning about how 7 min read How to Create Color Picker input box in HTML ? In this article, we will know about the HTML color picker & will understand its implementation through the example. The <input> element of type color in HTML provides the user with an interface to select a color from the default color-picker to interface or design their own color by giving 2 min read How to use Color Palettes in Python-Bokeh? Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh provides us with multiple color palettes in the bokeh 7 min read How to Use the Color Picker Tool in Figma? We have seen many designers working on websites, applications but they face a very big problem with colors. To get the exact color as they desire, designers put on so much time and effort. Even after putting this much effort and time sometimes they are unable to get that. Making the exact color requ 4 min read Add Interactive Slider to Bokeh Plots Bokeh is an interactive Data visualization library of Python. It can be used to create interactive plots, dashboards, and data applications. Widgets are nothing but additional visual elements that you can add to your plots to interactively control your Bokeh document. There are various types of widg 2 min read Python Bokeh - Plotting Pluses on a Graph Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot pluses on a graph. Plotting pluse 2 min read Like