Git Product home page Git Product logo

vega-lite's People

Contributors

groodlooker avatar marc-wilson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vega-lite's Issues

Chart sizing issues in looker

The charts are a little too big in looker and are causing scrolling issues.

2019-05-07_11-22-35

The issue seems to be that the logic to fix the sizing in the spec property doesn't account for the legend or axis.

I think a couple of minor adjustments resolves this:

  1. Use svg instead of canvas. SVG is a little easier to size than a canvas element and is also called out as a potential sizing fix by one of the maintainers here
  2. Implement a function to fix the sizing of the svg after the chart has been rendered. Basically, get the looker container div#vis so we can grab the clientHeight/clientWidth then update the svg with the same dimensions after it's rendered.

unpin

In vega-3-2-.js, around line 509, it has...
"scale":{"zero":config['y2']}

But in other places above that, it has...
"scale":{"zero":config['unpin_y']}

Is there any reason why vega-3-2.js is not in the git?

Looker Color Scheme

Is there a way to pull in a custom defined looker color scheme into the vega visualizations?

Labels containing white space cause an Uncaught Error

Plotting a measure with a label that contains a newline character (This is a newline in the LookML, presumably \n) causes the Vega viz to break.

There is at least one real world application for this, which is using liquid to format the labels.
For readibility, these are often formatted like this (note the newline after the first if block)

label: "{% if param._parameter_value == 'Yes' %}Gross Margin (GBP)
    {% else %}Gross Margin (GBP)
{% endif %}"

Here is the stack trace:

newline_bug_console_log.txt

License of the library

Hello @groodlooker ! Thank you so much for creating this library.

We want to modify this library and use it in commercial projects. Can you please tell what type of license the code has?

Thanks!

Adding Reference Lines causes an Uncaught error

Attempting to add Reference Line X or Reference Line Y in 4.Settings causes the below Uncaught Error (Chrome Version 71.0.3578.98 (Official Build) (64-bit))

The viz will not update or function correctly until the reference line is deselected

model.ts:616 Uncaught (in promise) Error: Cannot find a selection named "paintbrush"
    at FacetModel.Model.getSelectionComponent (model.ts:616)
    at LayerModel.Model.getSelectionComponent (model.ts:613)
    at UnitModel.Model.getSelectionComponent (model.ts:613)
    at expr (selection.ts:244)
    at logicalExpr (util.ts:297)
    at selectionPredicate (selection.ts:266)
    at mixins.ts:248
    at Array.map (<anonymous>)
    at wrapCondition (mixins.ts:246)
    at nonPosition (mixins.ts:219)

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.