Code Monkey home page Code Monkey logo

Comments (16)

maacl avatar maacl commented on May 22, 2024 2

from oz.

MnRA avatar MnRA commented on May 22, 2024 1

Oh no pressure, If I end up needing it for my project (or I stumble upon a nice solution) I'll make a pull request. Still learning the Oz and Vega, So it's probably going to be a while before I can.

Thanks for your work.

from oz.

maacl avatar maacl commented on May 22, 2024

Is there a way to switch tooltips off until they work? Right now the text just renders outside the graph.

from oz.

metasoarous avatar metasoarous commented on May 22, 2024

@maacl Oh my; I have not seen this specific behavior. We could probably permit a :tooltips flag which turns this behavior on/off. Might also want to try specifically including a more recent version of vega from cljsjs; If I had a dollar for every time I've found a bug in vega that has been solved by upgrading versions, I'd have a few dollars. I'll be updating the default versions soon, but till then...

from oz.

maacl avatar maacl commented on May 22, 2024

from oz.

metasoarous avatar metasoarous commented on May 22, 2024

You can exclude, yes. But IIRC, as long as you put whatever of the vega/vega-lite/vega-tooltip libs you're using above oz in your dependencies list, those versions will take precedent over whatever oz is specifying as a dependency.

from oz.

maacl avatar maacl commented on May 22, 2024

from oz.

bombaywalla avatar bombaywalla commented on May 22, 2024

I don't know if it's related to this issue, but I've been bitten by this similar vega issue when using oz. According to that issue history, it's been addressed by Vega 4. I looked at cljsjs, but the latest there seems to be Vega 3.3.1-1.

If you've been able to get oz to use Vega 4, would you please show me how.
Thanks.

from oz.

metasoarous avatar metasoarous commented on May 22, 2024

Hi @bombaywalla - I've been working on a script for building updates to the various cljsjs/vega* libs, which you can find here: https://github.com/metasoarous/oz/blob/master/bin/update-cljsjs.sh. There's also some notes in the README now down at the bottom about how to override the default versions: https://github.com/metasoarous/oz#debugging--updating-vegavega-lite-versions. Hopefully I be a able to mint a release soon that addresses all of these issues, but if not, feel free to try running the update-cljsjs.sh script yourself, as it should install the cljsjs libs to your local maven repository.

from oz.

bombaywalla avatar bombaywalla commented on May 22, 2024

Thanks.

from oz.

MnRA avatar MnRA commented on May 22, 2024

So I'm guessing this is still something that hasn't been added and I can ignore the vegaTooltip.vega is not a function error I'm getting?
(after much investigation I found out vegaTooltip used to have a 'vega' function until 0.9.0, from the time of writing it's around version 0.17.0)

from oz.

metasoarous avatar metasoarous commented on May 22, 2024

Hi @MnRA. Thanks for reminding me about this.

This has not been resolved yet, unfortunately. I've been holding off because I've been thinking more generally about passing in customizations to the way you run embed (see #59 for example). Feel free to submit a specific pull request for this particular issue though. Otherwise, I'll get to it when I'm able, and make sure to report back on this issue.

Thanks again!

from oz.

gklijs avatar gklijs commented on May 22, 2024

I don't get the issue, but maybe I'm thinking of a different tooltip? I used oz for https://open-bank.gklijs.tech/average-kb-cpu.html source at https://github.com/gklijs/open-bank-mark/tree/data-ch-languages-one-broker tooltips work fine. When hovering over a line you see all the info for that point.

from oz.

diegovdc avatar diegovdc commented on May 22, 2024

I am getting an error on the browser console vegaTooltip.vegaLite is not a function (https://quihubolecontupandemia.netlify.com/). However there is also a tooltip there and it shows the correct info.
Rendering is done with reagent and compiling with shadow-clj.

Source: https://github.com/diegovdc/covid-spread

from oz.

metasoarous avatar metasoarous commented on May 22, 2024

I think this is no longer an issue. Thanks for chiming in folks!

from oz.

metasoarous avatar metasoarous commented on May 22, 2024

Went ahead and verified that this is no longer an issue by adding a tooltip to one of the vega examples (see f317e7b), and indeed it works fine, without any extraneous error messages. Thanks again folks!

from oz.

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.