Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding more than 1 needle inside gauge #30

Open
itshazlan opened this issue Mar 9, 2021 · 12 comments
Open

Adding more than 1 needle inside gauge #30

itshazlan opened this issue Mar 9, 2021 · 12 comments

Comments

@itshazlan
Copy link

Could you give me the option of how to draw more than one needle inside the gauge? Please

@NickersWeb
Copy link

@hamzahalvanaa check my fork that does precisely that... https://github.com/NickersWeb/D3-Radial-Gauge

@itshazlan
Copy link
Author

@hamzahalvanaa check my fork that does precisely that... https://github.com/NickersWeb/D3-Radial-Gauge

how to use your project with the existing angularJS project?

@stherrienaspnet
Copy link
Owner

stherrienaspnet commented Mar 9, 2021 via email

@NickersWeb
Copy link

@hamzahalvanaa in my fork I have a demo. It's just JavaScript. From what I can remember, you just put the data in the scope and call the functions when needed to update the gauges etc

@itshazlan
Copy link
Author

Hello I do not do programmation anymore in my life. But you just have to isolate the needle logic part and duplicate it. Good luck

On Tue, Mar 9, 2021 at 2:40 AM Hamzah. @.***> wrote: Could you give me the option of how to draw more than one needle inside the gauge? Please — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#30>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOX24LVU2WEP7J5RMOJNILTCXGINANCNFSM4Y27BCRA .

I need few explanation from you, here is my code :

template.html :

<span width="100%" ng-radial-gauge angle="90" ranges="rangesGross" value="getDataFromTagU12('U1_GROSS')" value-unit="nullUnit" precision="precision" lower-limit="0" upper-limit="350" hide-tick-unit="1" ng-show="getDataFromTagU12('last_update')!=undefined&&getDataFromTagU12('last_update')!=null" major-graduation-text-color="#ffffff" major-graduation-color="#ffffff" minor-graduation-color="#ffffff" needle-color="#ffffff" bar-thickness="15" needle-value-text-size="0" major-graduation-text-size="15" major-graduations="8"></span>

template.js :

		$scope.value = 15;
		$scope.upperLimit = 6;
		$scope.lowerLimit = 0;
		$scope.unit = "MW";
		$scope.unitCoal = "T/H";
		$scope.nullUnit = "";
		$scope.precision = 2;
		$scope.rangesGross = [
			{
				min: 0,
				max: 150,
				color: '#FDC702'
			},
			{
				min: 150,
				max: 300,
				color: '#8DCA2F'
			},
			{
				min: 300,
				max: 350,
				color: '#C50200'
			}
		];

Where is the needle logic part that I need to isolate and duplicate? Thank you

@stherrienaspnet
Copy link
Owner

Prepare a plunker or jsfiddle and I will try to make make it work, but no garantee

@itshazlan
Copy link
Author

Prepare a plunker or jsfiddle and I will try to make make it work, but no garantee

Here is my example, http://plnkr.co/edit/fcPQwTfbC1gOwrtS

@NickersWeb
Copy link

@hamzahalvanaa here you go... http://plnkr.co/edit/1u2zCNhM44RFN3y5

@itshazlan
Copy link
Author

@NickersWeb thanks for your effort, but I've looked forward to seeing the result from @stherrienaspnet

@stherrienaspnet
Copy link
Owner

stherrienaspnet commented Mar 10, 2021 via email

@NickersWeb
Copy link

@hamzahalvanaa was this ever resolved?

@itshazlan
Copy link
Author

@NickersWeb well i should give a try. thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants