Giter Site home page Giter Site logo

rhowe / grafonnet-lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grafana/grafonnet-lib

9.0 9.0 1.0 882 KB

Jsonnet library for generating Grafana dashboard files.

Home Page: https://grafana.github.io/grafonnet-lib/

License: Apache License 2.0

Shell 0.51% Jsonnet 96.32% JavaScript 2.02% Makefile 0.87% Dockerfile 0.28%

grafonnet-lib's People

Contributors

aajisaka avatar aechgg avatar alexppg avatar anpryl avatar arodrime avatar asiekkowa avatar bastienf avatar caarlos0 avatar cazorla19 avatar corentinaltepe avatar cyriltovena avatar cznewt avatar daniellee avatar dependabot[bot] avatar differentialorange avatar enrichman avatar jdbaldry avatar jecnua avatar jtlisi avatar kobtea avatar lukaf avatar luna-duclos avatar malcolmholmes avatar rhowe avatar roidelapluie avatar ryucaelum avatar siddharth-gitrepo avatar svenklemm avatar tomwilkie avatar trotttrotttrott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

tenstad

grafonnet-lib's Issues

Add legend hide options to timeseries panel

Hi there,

Firstly, really appreciate all the work you've done on this fork ๐Ÿ™Œ

I'm interested in adding the hideZero property to the legend object for Time Series Panels, similar to the Graph Panel, and I am currently using Grafana v9.2

I attempted to create a new branch in order to submit a PR, but I don't have permissions. So I am opening a ticket with a suggested diff:

     legendMode='list',
     legendPlacement='bottom',
     legendValues=[],
+    legendHideEmpty=null,
+    legendHideZero=null,
     lineInterpolation='linear',
     lineStyle='solid',
     lineDashSegments=null,
@@ -181,6 +183,8 @@
         calcs: legendValues,
         displayMode: legendMode,
         placement: legendPlacement,
+        [if legendHideEmpty != null then 'hideEmpty']: legendHideEmpty,
+        [if legendHideZero != null then 'hideZero']: legendHideZero,
       },
       tooltip: {

Thank you!

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.