question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set DataZoomOpts in Boxplot with vertical mode, and boxplot disappear when zoom

See original GitHub issue

Problem

I set DataZoomOpts in Boxplot with vertical mode. However, when I zoom the plot, the box disappears.

Environment I use it in docker. In Dockerfile, I install miniconda to set python environment.

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
/bin/bash Miniconda3-latest-Linux-x86_64.sh -f -b -p $CONDA_DIR

pip install pyecharts

Code and Figure

My code is as follow,

boxplot = Boxplot()
boxplot.add_xaxis([“price”])
boxplot.add_yaxis("value", boxplot.prepare_data(y_data))
boxplot.set_global_opts(
        title_opts=opts.TitleOpts(title="price"),
        datazoom_opts=[opts.DataZoomOpts(range_start=0, range_end=100, orient="vertical"), 
                       opts.DataZoomOpts(type_="inside", range_start=0, range_end=100, orient="vertical")],
        toolbox_opts=opts.ToolboxOpts(),
    )

image image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sunhailin-Leocommented, May 10, 2021

@JisongXie

0reactions
JisongXiecommented, May 10, 2021

@sunhailin-Leo Pycharts is the python warpper of echarts. Box in this example also disappear when it zooms out of the axis. Indeed a echarts problem. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zoom in on plotly boxplot in python by only showing the ...
There is no pre-zooming option in plotly, the only solution is to calculate the Q1 and Q3 and set the range of y-axis...
Read more >
A Complete Guide to Box Plots | Tutorial by Chartio
Box plots are a streamlined way of summarizing the distribution of groups of data. Read this article to learn how to best use...
Read more >
Box Plots - R
Box Plots. Description. Produce box-and-whisker plot(s) of the given (grouped) values. Usage. boxplot(x, ...) ## S3 method for class 'formula' ...
Read more >
Exploring ggplot2 boxplots - Defining limits and adjusting style
boxplot_framework : Styling the boxplot. Let's get our style requirements figured out. First, we can set some basic plot elements for a theme....
Read more >
Boxplot chart options | Looker - Google Cloud
Boxplot charts help you visualize the distribution and spread of values in your dataset. Boxplot charts can be especially useful for comparing values...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found