Git Product home page Git Product logo

Comments (7)

Shekharrajak avatar Shekharrajak commented on August 30, 2024

iframe html tag can help to solve these kinds of issues. Refer : https://www.w3schools.com/tags/att_iframe_srcdoc.asp

We have to use our html code for the chart as the srcdoc in iframe tag.

from daru-view.

snpd25 avatar snpd25 commented on August 30, 2024

@Shekharrajak can you give an insight of how the appropriate code would have worked in the example

from daru-view.

Prakriti-nith avatar Prakriti-nith commented on August 30, 2024

@snpd25 Check these examples of Arrow formatter and bar formatter from Google Charts. Also run these rails examples to know how the bar formatter is working in rails.

from daru-view.

snpd25 avatar snpd25 commented on August 30, 2024

Thanks @Prakriti-nith , actually I am new to the code base, can you please tell me which file/code-snippet needs modification?
Thanks.

from daru-view.

Prakriti-nith avatar Prakriti-nith commented on August 30, 2024

Have a look at the to_html method which generates the HTML code for the chart.

from daru-view.

snpd25 avatar snpd25 commented on August 30, 2024

@Prakriti-nith , I have checked all the methods related to the formatters and they are all according to the googlecharts api documentation, but the html-script generated for the bar is this:
<span style="padding: 0; float: left; white-space: nowrap;"><img style="padding: 0" src="https://ajax.googleapis.com/ajax/static/modules/gviz/1.0/util/bar_s.png" height="12" width="1" /><img style="padding: 0" src="https://ajax.googleapis.com/ajax/static/modules/gviz/1.0/util/bar_b.png" height="12" width="9" /><img style="padding: 0" src="https://ajax.googleapis.com/ajax/static/modules/gviz/1.0/util/bar_w.png" height="12" width="1" /><img style="padding: 0" src="https://ajax.googleapis.com/ajax/static/modules/gviz/1.0/util/bar_s.png" height="12" width="1" /> 1,000</span>

from daru-view.

Shekharrajak avatar Shekharrajak commented on August 30, 2024

I think there is conflict in jupyter notebook html (JS) and googleapi JS in the html of the notebook (when it serve in browser).

from daru-view.

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.