Giter VIP home page Giter VIP logo

semiotic-docs's Issues

"Copy Full Code" not working on Safari

This is minor and annoying to fix but it was a stumbling block for me.

The "Copy Full Code" didn't copy anything and the examples didn't have the complete data in it. Because I didn't realize this worked other browsers, I went digging through the repo to find the data.

I think this is what's not supported in Safari:

document.execCommand("copy")

Unfortunately, I don't have time right now to make a PR.

I understand if you would want to mark this as wontfix and move on. If you do want to fix it, here are some resources:
https://stackoverflow.com/questions/40147676/javascript-copy-to-clipboard-on-safari
https://github.com/zenorocha/clipboard.js
https://github.com/feross/clipboard-copy

Thanks

yarn.lock points to internal netflix npm url

I was trying out the repo locally and found that yarn failed to install silently. To fix, I deleted yarn.lock and ran yarn again to generate a new file that removed the internal urls.

Love these docs, BTW!

[migration] Copy Examples from Old Documentation Site

Before these new docs were made, Semiotic had another set of examples in the library source folder, some of which showcased features of the library which aren't included in the new docs yet.

This is a non-exhaustive list of examples from the old documentation that I think people could be interested in:

  • Shared Tooltip
  • Pie/Donut
  • Chord Diagram
  • Information Model (Transform bar to parallel coordinates) (#18)
  • Legend (See #7 )
  • Faceting
  • Violinplot
  • ... multiple others! Please edit this issue as you notice additional items.

Allow CSS from examples to be copied to clipboard

Loving the new docs!

When copying the source code to try an example in CodePen I can click the 'Copy Full Code' button to copy the source code but not the CSS.

Would it be possible to be able to copy the styles too for each example? This would be really useful.

Add curated list of user examples

Semiotic docs have some nice examples of what you can do when applying basic settings to the available frame types.

But I think there would be real value in adding a page to the docs site with a curated list of user-submitted examples to show off what this data visualization framework is really capable of.

There are many ways user submissions could work but how about having examples shown on the docs site as a thumbnail gallery which links to a live CodePen example, so the code itself can be explored and experimented with.

Obviously, not everyone who has created a data viz will have used CodePen so the ones that aren't would need to be recreated as a pen. The ones that are done as a pen could be forked into an official Semiotic CodePen account and cleaned up and the thumbnail redone if necessary. The thumbnail could then be displayed in the gallery on the Semiotics docs.

It should be possible to auto-create an image gallery pens from an RSS feed. e.g. https://codepen.io/emeeks/public/feed

Each CodePen collection also has it's own feed so we could split all submissions roughly into each data viz type and still auto-generate the gallery, which would cut down on the admin work.

The thumbnail can be generated as long as you know the pen URL (which is in the RSS feed): https://blog.codepen.io/documentation/api/screenshots/

To help generate interest, a prominent link on the docs site to prompt users to submit work could work well?

I'd be happy to help out with any of this. Unless there was a lot of submissions it shouldn't be too much work to create forks of pens and cleaning them up if necessary.

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.