Comments (5)
I answer to myself: I added:
self.jschart += "chart.xScale(d3.scale.log());"
to NVD3Chart.py in python-nvd3 code, and this works quite well! I just need to change the axis ticks formatting to prevent the X axis to be overwhelmed with labels.
I may be able to submit a patch later, but my programming may be a bit rusty and not very high standard.
from django-nvd3.
Can you show us an example with nvd3 ?
from django-nvd3.
Do you mean a screenshot? See below:
This was obtained adding in NVD3Chart.py :
self.jschart += stab(2)+"chart.xScale(d3.scale.log());\n"####
self.jschart += stab(2)+"chart.xAxis.tickValues([0.001, 0.003, 0.01, 0.03, 0.1, 0.3, 1, 3, 10, 30]);\n"####
Now of course this is only a proof-of-concept. I need to add the code correctly and edit both python-nvd3 and django-nvd3.
I also realised this is similar to qdoolaeg request here: areski/python-nvd3#13
He proposes the more generic solution where any attribute/value could be passed to chart. It is nice, because it would allow users to add non yet supported attributes for django-nvd3.
I can fork your repository and provide a pull request then.
from django-nvd3.
I have sent pull requests for python-nvd3 and django-nvd3. Please let me know what you think.
from django-nvd3.
I suppose we can close this one now?
from django-nvd3.
Related Issues (20)
- Documentation is not helpful HOT 3
- Example Error: argument of type 'bool' is not iterable
- Update python-slugify [required: ==1.1.4]
- The chart can't show with error "Uncaught TypeError: a.dispatch.render_start is not a function" HOT 1
- Impossible add more than one tooltip for char
- Multibarchart x axis with text labels does shows NaN% in chart , but gets label correct in tooltip HOT 2
- Separate x for series
- data:87 Uncaught TypeError: chart.tooltipContent is not a function HOT 3
- Doesn't work demo project
- long xAxis Label
- Data from database HOT 2
- Rotate x-axis labels HOT 1
- GET /static/nvd3/build/nv.d3.min.css HTTP/1.1" 404 HOT 1
- Custom Tooltip
- Is that possible for add hyperlink to Chart?
- Getting the error "a.dispatch.render_start is not a function" HOT 4
- NaN% values displayed at x-axis of Multibar chart
- Vertical guideline? HOT 1
- pip install error HOT 3
- NVD3 not displaying the graph HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-nvd3.