Giter Club home page Giter Club logo

Comments (3)

davelandry avatar davelandry commented on July 4, 2024 1

@nalhadad we have fixed this includes issue in the past, but this may have just been because we haven't rebundled the entire library since then. Can you share your code?

This new bundle should contain the fix: https://d3plus.org/js/d3plus.v2.0.0-alpha.23.full.min.js

from d3plus-website.

nalhadad avatar nalhadad commented on July 4, 2024

Hello,
Here is one of the examples that didn't work with IE11. I tried it with the version u sent me and it works perfectly. Thank you very much.

<script src="https://d3plus.org/js/d3plus.v2.0.0-alpha.22.full.min.js"></script> <script src="http://www.d3plus.org/js/d3.min.js"></script>
<script> var sample_data=[{"LivraisonPays":"Argentina" , "year":2015 , "Prix":3 }, {"LivraisonPays":"Argentina" , "year":2022 , "Prix":81 }, {"LivraisonPays":"Argentina" , "year":2014 , "Prix":81 }, {"LivraisonPays":"Argentina" , "year":2022 , "Prix":264 }, {"LivraisonPays":"France" , "year":2022 , "Prix":27 }, {"LivraisonPays":"France" , "year":2012 , "Prix":27 }, {"LivraisonPays":"France" , "year":2016 , "Prix":28 }, {"LivraisonPays":"France" , "year":2017 , "Prix":28 }, {"LivraisonPays":"France" , "year":2012 , "Prix":28 }, {"LivraisonPays":"Austria" , "year":2013 , "Prix":14 }, {"LivraisonPays":"Austria" , "year":2015 , "Prix":15 }, {"LivraisonPays":"Austria" , "year":2015 , "Prix":34 }, {"LivraisonPays":"Austria" , "year":2021 , "Prix":35 }, {"LivraisonPays":"Austria" , "year":2022 , "Prix":36 } ]; var visualization = new d3plus.Treemap() .select("#viz") .data(sample_data) .groupBy(["LivraisonPays","year"]) .sum("Prix") .depth(1) .render(); </script>

from d3plus-website.

nalhadad avatar nalhadad commented on July 4, 2024

Thank you for ur fast replies.
I've already seen this example. This is not exactly what I need. I do not need to relate the colors to the data. I want to define a set of colors and my Treemap/pie assignes these colors to it.
In V1, I could do that, like this example : (http://jsfiddle.net/b754suyw/)
As u can see, I just have to define an array of colors and put it in .color({scale: [my array of colors]})
and My Treemap take this array automaticly.
How to make the same in V2?
Thank you.

from d3plus-website.

Related Issues (3)

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.