Comments (4)
Can you please put your complete code here?
Does it work without colon?
from python-nvd3.
Yes with removing the colon from content.html it works, but I'm not sure if it's needed in some other case but I suspect not ...
With complete code you mean?
Could be a lot, I think that's the relevant part:
tsd = _(u'Tsd')
mio = _(u'Mio')
mrd = _(u'Mrd')
chart_attr = {}
if self.report.type.name_id not in ('pieChart',):
chart_attr['yAxis'] = str(".tickFormat(function(d){return d3.format('.1s')(d).replace('k', '%s').replace('M', '%s').replace('G', '%s')})" % (tsd, mio, mrd))
charttype = self.report.type.name_id
data = Context({
'charttype': charttype,
'chartdata': self.chartdata,
'extra': {
'x_is_date': False,
'x_axis_format': '', #leestring zeigt einfach nur die eingangswerte, oder BSp. formatiert als datum: %d %b %Y %H
'tag_script_js': True,
'jquery_on_ready': False,
#'y_axis_format' : "function(d){return d3.format('.2s')(d).replace('k', 'Tsd').replace('M', 'Mio').replace('G', 'Mrd')}",
#'custom_format' : True,
'chart_attr' : chart_attr,
},
'additional_data' : self.data, #das ursprungsdatenobjekt auch im template zugreifbar behalten um z.B. an den Firmennamen im Template dranzukomemn
'original_url' : self.original_url,
'filters' : self.ui_filter_fields,
'verb_names': self.verb_names
#'filters': filters,
} )
return data
from python-nvd3.
@oz123 this is the issue fixed in #111, I didn't check the issue list before submitting the pull request :$
from python-nvd3.
ok, thanks for reporting this.
from python-nvd3.
Related Issues (20)
- adding custom tooltips HOT 1
- Installation WITHOUT bower? HOT 1
- nvd3 1.7.1 no longer available on npm HOT 4
- linechart never loads extras
- LineChart example in documentation errors HOT 1
- ImportError: cannot import name 'linePlusBarWithFocusChart' HOT 2
- Line Chart - X axis and Y axis Label HOT 1
- Adding showValues(true) to discretebar HOT 1
- Should charts render in jupyterlab?
- How to plot bullet chart using python-nvd3? HOT 1
- how do i input sqlite3 data? HOT 2
- remove dependency to python-slugify HOT 8
- adding new line in x_axis_format when using x_is_date=True
- stacked bar chart anytime soon?
- Release new version HOT 12
- Animation with Python syntax
- importing nvd3 hangs python
- Proposing a PR to fix a few small typos
- Please tag newer releases HOT 1
- Increase the usage of augmented assignment statements HOT 2
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 python-nvd3.