GithubHelp home page GithubHelp logo

Comments (4)

oz123 avatar oz123 commented on August 16, 2024

Can you please put your complete code here?
Does it work without colon?

from python-nvd3.

ingodjango avatar ingodjango commented on August 16, 2024

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.

pignacio avatar pignacio commented on August 16, 2024

@oz123 this is the issue fixed in #111, I didn't check the issue list before submitting the pull request :$

from python-nvd3.

oz123 avatar oz123 commented on August 16, 2024

ok, thanks for reporting this.

from python-nvd3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.