Code Monkey home page Code Monkey logo

Comments (2)

areski avatar areski commented on August 16, 2024

We will suggest you to use "Discrete Bar Chart" as this chart have x-axis with non number format.

from django-nvd3.

Faerbit avatar Faerbit commented on August 16, 2024

I didn't realize that it wasn't possible to display text on the x-axis on a lineChart. But I really would like to use a linechart. So I've come up with this:
{'charttdata': {'y1': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'x': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'name1': 'Fabian'}, 'charttype': 'lineChart'}
And it gives me this error:
http://dpaste.com/hold/1290626/
I also tried this:
{'charttype': 'lineChart', 'charttdata': {'name1': 'Fabian', 'x': [datetime.date(2013, 1, 1), datetime.date(2013, 2, 1), datetime.date(2013, 3, 1), datetime.date(2013, 4, 1), datetime.date(2013, 5, 1), datetime.date(2013, 6, 1), datetime.date(2013, 7, 1), datetime.date(2013, 8, 1), datetime.date(2013, 9, 1), datetime.date(2013, 10, 1), datetime.date(2013, 11, 1), datetime.date(2013, 12, 1)], 'y1': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}}
And it gives me this error:
http://dpaste.com/hold/1290629/

I'm also really confused what this error is supposed to mean.

from django-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.