justgage

justGage - increase and decrease value with buttons

妖精的绣舞 提交于 2019-12-24 05:49:50
问题 I'm using justGage (a plugin for generating and animating nice & clean dashboard gauges) to program some graphs - I need to be able to increase and decrease the value by clicking a button. I can do this by using refresh (g1.refresh(20);) - but that makes the value 20...it doesn't increase it by 20. Can anyone help please ? Many thanks Al 回答1: I couldn't find a method for retrieving the gauge's current value, so I just store that value in a separate variable. Then, every time the gauge is

How do I add custom HTML in Rally sdk 2.0?

家住魔仙堡 提交于 2019-12-11 10:52:07
问题 I'm creating an app with some custom gauges using Rally SDK 2.0. This requires some custom HTML. I took a rake-compiled app.html file from the examples as a starting point. Using JustGage for my gauges. Here is my launch function. launch: function () { var info = this.getStoriesForProject(); //Gets some aggregate info $('#header label').html(info.Title); var g = new JustGage({ id: "devgauge", value: info.DevPercent, levelColors: ['#f80404', '#f8f804', '#50ed0e'], min: 0, max: 100, title: "Dev

Can not find element in postlink of directive creation in angularjs

懵懂的女人 提交于 2019-12-11 08:27:37
问题 I am trying to create a directive for JustGauge in AngularJS. My html view is something like this: <div id="guageContainer" class="row" ng-controller="guageCtrl"> <gauge ng-repeat="ind in indicators" model="ind"></gauge> </div> and my directive is: angular.module("pgHome", []) .directive("gauge", function ($compile) { return { restrict: "E", scope: { model: "=model" }, compile: function (tElement, tAttrs, transclude) { tElement.append('<div id="{{model.Name}}"></div>'); return { post: