Giter VIP home page Giter VIP logo

gosling-theme's Introduction

Gosling Themes

Styling themes for Gosling.js visualizations.

(This repository is under development)

How To Use

import { Themes, getTheme } from 'gosling-theme';
import { GoslingComponent } from 'gosling.js';

<GoslingComponent spec={spec} theme={Themes.dark}>

// or

<GoslingComponent spec={spec} theme={getTheme('dark')}>

// or just

<GoslingComponent spec={spec} theme={'dark'}>

// to customize the style

<GoslingComponent spec={spec} theme={{base: 'dark', axis: { baselineColor: 'green' }}>

You can find an example html file below \demo.

Development

Install Packages

yarn

Run Demo

yarn start

This opens a webpage based on demo/index.html.

To test with other themes defined in src/, you need to change the following line of code in demo/index.html:

{
    theme: goslingTheme.Themes.washu
}

Publish Package

When you patch the version and push the code with tags, GitHub will do the job to publish the latest NPM package:

yarn version --patch
git push origin master --tags

gosling-theme's People

Contributors

cjrosa23 avatar manzt avatar sehilyi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

cjrosa23 manzt

gosling-theme's Issues

Use a separate `theme` prop

Currently, the theme is a part of the Gosling grammar, but we need to separate the two (i.e., grammar and theme).

Missing component

  • font size
  • font family
  • alternatiing background (e.g., when rows are used)
  • alignment for text and title
  • title backround color
  • track inner background
  • dashed grid lines in linear
  • position legend
  • dashed grid lines in circular
  • Legend symbols (e.g., rectangles)
  • axis position

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.