Questions tagged [python-nvd3]

Python-nvd3 is a pythonic wrapper around the JS library nvd3. It allows you to create dynamic graphs with Python, rendering them to JS.

10 questions
2
votes
1 answer

How to make Nvd3 use log scale on y-axis

How to use log scale in nvd3 lineChart y-axis? I'm plotting these series which contain very large numbers: ydata1 = [13947989924.43, 13944328607.2, 13936012870.52, 13792849748.97, 13756681531.69] ydata2 = [10031442377.14, 10026457857.22,…
DougKruger
  • 4,424
  • 14
  • 41
  • 62
2
votes
0 answers

Python-nvd3, how to set x-axis to log scale

I'm using the python wrapper for nvd3 to plot line chart as shown below. But I'll wish to know how to set the x-axis to log scale from nvd3 import lineChart chart = lineChart(name="lineChart", x_is_date=False, x_axis_format="AM_PM") xdata =…
DevEx
  • 4,337
  • 13
  • 46
  • 68
1
vote
0 answers

Custom X and Y-axis range for lineChart with python-nvd3

This is a simple lineChart example using python-nvd3: from nvd3 import lineChart chart = lineChart(width=600) xdata = range(13) ydata = [1, 2, 3, 5, 8, 10, 11, 10, 8, 5, 4, 2, 1] chart.add_serie(y=ydata, x=xdata) chart.buildhtml() with…
PApostol
  • 2,152
  • 2
  • 11
  • 21
1
vote
1 answer

How to set nvd3 lineChart x-axis to use string

I'm a complete noob, I wish to plot a lineChart using the python wrapper of the nvd3 library built on top of d3.js. I've been exploring the x_axis_format of the lineChart and desire to utilize custom formatting so I can use strings on x-axis . The…
DougKruger
  • 4,424
  • 14
  • 41
  • 62
0
votes
1 answer

How to avoid text overlapping in odoo 10 nvd3 pie chart

I am using odoo 10. When I go to tree view then charts then click on pie chart icon. Pie Labels are overlapping at some points. I tried to some work around in /web/static/nvd3/nv.d3.js file but it is either giving me errors or n effect. Could anyone…
user3606682
  • 1,945
  • 3
  • 17
  • 24
0
votes
2 answers

Equal x-axis ticks for time series data

I have a timeseries data from which I am trying to build a stackedAreaChart with nvd3. Series look like this: xdata = ['2017-11-17', '2017-12-17', '2018-01-17', '2018-02-17', '2018-03-17', '2018-04-17'] ydata = [7277L, 9579L, 6291L, 6715L, 8743L,…
oleks5412
  • 75
  • 7
0
votes
2 answers

Error installing django-nvd3

I have the following error when executing the following command pip3 install django-nvd3 Collecting django-nvd3 Using cached django-nvd3-0.9.7.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call…
Lechucico
  • 1,914
  • 7
  • 27
  • 60
0
votes
1 answer

How to plot bullet chart using python-nvd3?

I am completely new to python web development and this is my first web app using Python and Django. For plotting purposes I am using python-nvd3. I followed the instructions here :…
0
votes
1 answer

python-nvd3 missing xAxis ticks

I create a multibar chart in python with python-nvd3. The problem is that only every second X-Axis tick/label is showing up on the chart. I generate is the chart in python before passing it through to a flask-template. The problem is described in…
Dusty Boshoff
  • 1,016
  • 14
  • 39
0
votes
0 answers

Python NVD3 from Pandas dataframe

I am unable to figure out how to create a NVD3 chart (stackedArea) in Python from a Pandas Dataframe using the python-nvd3 wrapper. A demo with a list of integers is working without issues. My intitial Data consists a series of dates and a series of…
lammy
  • 457
  • 2
  • 5
  • 22