Code Monkey home page Code Monkey logo

Comments (4)

darsney avatar darsney commented on May 17, 2024 2

Thanks for highlighting this issue! We have gone ahead and made hasWarm optional with the default value of false, we will roll an update to npm later today.

Additionally, the availability chart doesnt take availability results, it takes chart data shape, so you have to transform the results before you render. Try doing this...

tsiClient.server.getAvailability(token, tsi.url)
    .then(function(result){
        var availability = new tsiClient.ux.AvailabilityChart(document.getElementById('availability'));
        availability.render(tsiClient.ux.transformAvailabilityForVisualization(result, 500), 
                {theme: 'light', color: 'purple', legend: 'hidden'}, 
                result);
    })
})

I'll go ahead and extend the explore events example to cover using the availability chart since this is largely undocumented.

Please let us know if you have any other issues, thanks!

from tsiclient.

darsney avatar darsney commented on May 17, 2024 1

I've updated the explore events example to show how to use the availability chart, as well as illustrated two way binding when zooming from the line chart and adjusting the availability chart. It's a pretty complex example, but it's really powerful, and still only 175 lines of code (with 50 just to choose bucket size!)

Check it out here!
https://tsiclientsample.azurewebsites.net/withplatform/exploreevents.html

from tsiclient.

darsney avatar darsney commented on May 17, 2024

thanks for letting us know about this issue! we are checking it out right now, should have a fix out real soon, will keep you posted

from tsiclient.

MaximilianKarl avatar MaximilianKarl commented on May 17, 2024

Thank you for updating the documentation and helping me out.

from tsiclient.

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.