How to make Bullet charts in plotly?

This recipe helps you make Bullet charts in plotly

Recipe Objective

How to make Bullet charts in plotly.

Bullet charts It is used to replace dashboard guages and meters, combining both types of charts into simple bar charts with qualitative bars which are nothing but the steps, quantitative bar which are nothing but the bar and performance line which is threshold all into one simple layout. The steps typically are broken into several values, which are defined with an array. The bar represents the actual value that a particular variable reached, and the threshold usually indicate a goal point relative to the value achieved by the bar.

Step 1 - Import library

import plotly.graph_objects as go

Step 2 - Plot graph

fig = go.Figure(go.Indicator( mode = "number+gauge+delta", gauge = {'shape': "bullet"}, value = 320, delta = {'reference': 400}, domain = {'x': [0, 1], 'y': [0, 1]}, title = {'text': "Profit"})) fig.update_layout(height = 280) fig.show()

What Users are saying..

profile image

Ray han

Tech Leader | Stanford / Yale University
linkedin profile url

I think that they are fantastic. I attended Yale and Stanford and have worked at Honeywell,Oracle, and Arthur Andersen(Accenture) in the US. I have taken Big Data and Hadoop,NoSQL, Spark, Hadoop... Read More

Relevant Projects

Abstractive Text Summarization using Transformers-BART Model
Deep Learning Project to implement an Abstractive Text Summarizer using Google's Transformers-BART Model to generate news article headlines.

Build an Image Segmentation Model using Amazon SageMaker
In this Machine Learning Project, you will learn to implement the UNet Architecture and build an Image Segmentation Model using Amazon SageMaker

MLOps using Azure Devops to Deploy a Classification Model
In this MLOps Azure project, you will learn how to deploy a classification machine learning model to predict the customer's license status on Azure through scalable CI/CD ML pipelines.

Time Series Forecasting Project-Building ARIMA Model in Python
Build a time series ARIMA model in Python to forecast the use of arrival rate density to support staffing decisions at call centres.

Image Classification Model using Transfer Learning in PyTorch
In this PyTorch Project, you will build an image classification model in PyTorch using the ResNet pre-trained model.

Recommender System Machine Learning Project for Beginners-2
Recommender System Machine Learning Project for Beginners Part 2- Learn how to build a recommender system for market basket analysis using association rule mining.

NLP Project for Beginners on Text Processing and Classification
This Project Explains the Basic Text Preprocessing and How to Build a Classification Model in Python

Walmart Sales Forecasting Data Science Project
Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

Build an End-to-End AWS SageMaker Classification Model
MLOps on AWS SageMaker -Learn to Build an End-to-End Classification Model on SageMaker to predict a patient’s cause of death.

PyTorch Project to Build a GAN Model on MNIST Dataset
In this deep learning project, you will learn how to build a GAN Model on MNIST Dataset for generating new images of handwritten digits.