GithubHelp home page GithubHelp logo

marinebon / infographiqjs Goto Github PK

View Code? Open in Web Editor NEW
8.0 11.0 1.0 19.04 MB

Infographiq, ie intelligent interactive infographics, core JavaScript library

Home Page: https://marinebon.github.io/infographiqJS

License: MIT License

HTML 87.61% CSS 1.34% JavaScript 11.06%
javascript infographics data-visualization data-driven-art

infographiqjs's Issues

making protected Google Sheet content available via GitHub Actions

Hey @bbest. Here's an issue that I think is worth working on - using GitHub Actions to make protected Google Sheets content available for InfographiqJS.

So, the problem that we have faced is that NOAA-owned Google Sheets can't be made visible to the public. This issue has been addressed for Infographiq in the R context using InfographiqR::ocnms_get_sheet().

However, this solution won't work for Javascript-only versions of Infographiq, such as for the Florida Keys IEA or the responsive table. As a work around, we have been using Google Sheets not owned by NOAA for these instances, as we can make them visible to the public.

But I have a feeling that, if Infographiq is to get wide usage within NOAA, they are going to want to use NOAA-owned Google Sheets. So, how to do this?

One straightforward approach would be to use InfographiqR::ocnms_get_sheet (or a slightly altered version of it) within a GitHub Action. On some frequency (once a day/week/whatever), an Action could run that would copy the latest version of a desired protected Google Sheet into a csv that is URL-accessible. That csv could then be read by the Infographiq Javascript.

What do you think?

Tooltip position offset in fullscreen is too far right

Issue:
Tooltip shifted very far left when hovering over icons in fullscreen. Picture below shows issue:
Expected Behavior:
image
Tooltip is next to the mouse in a fixed location
Issue:
image

Possible causes:

  • justify right when calculating position of tooltip during fullscreen is wrong.

Potential Fixes:

  • separate calculation of tooltip position during fullscreen.

specify jQuery version to work with IEA Drupal site

We want to embed infographiqJS instances, like info-fk-iea, into the Drupal IEA website, but they have multiple calls to JQuery there preventing it from properly loading.

Let's document the exact error messages from the Google Chrome JS Console here, and research ways of referencing jQuery to work.

Ideally we can surgically reference jQuery so we don't have to rebuild the whole Drupal IEA site.

Here's how I was previously able to get it working in jQuery, but apparently that broke their navigation menu:


From: Ben Best [email protected]
Date: Wed, Mar 24, 2021 at 3:11 PM
Subject: Re: Interactive pieces on IEA site
To: Avi Litwack - NOAA Federal [email protected]
Cc: Ellen Spooner - NOAA Affiliate [email protected], Jai Ranganathan [email protected]

Ok, that moved past the original error, then produced $ is not a function, which led me to this fix:

https://www.drupal.org/node/756722#using-jquery

(function ($) {
  // All your code here
}(jQuery));

And VOILA! The Infographiq-test works ๐ŸŽ‰

add `csv` documentation

Which fields are necessary? Which can be swapped out as arguments in link_svg()?

  • svg:
  • icon: only required field
  • title:
  • link:
  • not_modal:

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.