sabymike / mssimplegauge Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Very cool control! I bet it wouldn't be very difficult to do the same for OS X / NSView given you've used Core Graphics. Any plans of doing this soon?
Hello, Thanks for your lovely tool.
I am thinking if you can add an enchancement in your tool.
The ability to represent also negative percentage.
Let say we have in the middle the 0 and on the right bottom the 100% and on the left bottom the -100% So, if I have a value +20% the radius indicator will be in the right part or if I have a value of -33% the radius indicator will be in the left part.
Thank you very much.
George N. Gerardis
I am using MSSimpleGauge in swift Class. But the needle is not showing. Below is my Code-
let bigGauge=MSSimpleGauge()
self.bigGauge.frame=iPad ? CGRectMake(110, 140, 558, 380) : CGRectMake(self.view.frame.size.width/2-100, 73, 200, 175);
self.bigGauge.fillArcFillColor=UIColor.clearColor();
self.bigGauge.backgroundColor = UIColor.clearColor();
self.bigGauge.backgroundArcFillColor = UIColor.clearColor();
self.bigGauge.fillArcStrokeColor = UIColor.clearColor();
self.bigGauge.backgroundArcStrokeColor = UIColor.clearColor();
self.bigGauge.backgroundGradient = nil;
self.bigGauge.startAngle = 0;
self.bigGauge.endAngle = 180;
self.bigGauge.value = 0;
self.bigGauge.arcThickness = 0.3;
self.view.addSubview(self.bigGauge);
print(self.bigGauge);
bigGauge value is Successfully Created and on view, we change bigGauge backgroundColor then it is visible. But Needle is not showing.
Can you upload the file which is compatible with Swift.
First, I want to say that this is a pretty cool widget and it has been easy to use. So thanks for that.
I want to ask though, is there a reason that the Annotated and Range variations of the Gauge have their functionality separated? An MSAnnotatedRangeGauge could be very helpful.
the following code in MSAnnotatedGauge.m fixes the error message, but is ios 8.2 cause the labels to be
drawn on the left of the scree outside the frame. commenting it out fixes the problem , returns the error message. picture attached.
if ([_valueLabel respondsToSelector:@selector(setTranslatesAutoresizingMaskIntoConstraints:)]) {
_valueLabel.translatesAutoresizingMaskIntoConstraints = NO;
}
Could not find such a content,how to use 'Enable awakeFromNib',
when i use:
pod 'MSSimpleGauge',:git=>'https://github.com/sabymike/MSSimpleGauge.git', :branch=>'circlegauge'
content is the same, i'm wrong?
Hope support IB_DESIGNABLE
Is there a way to make the gauge show a different value to whats being shown on the gauge ?
Add the option to display different color segments (e.g.: green, yellow, orange, red) on the gauge background.
like: http://dribbble.com/shots/954570-Bp-Results/attachments/108481
How do you set the start and end colors for the gradient?
Using the MSAnnotatedGauge in a iOS8 project, a message appears:
"Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fa5588afba0 V:|-(5)-[UILabel:0x7fa5588ade20] (Names: '|':MSAnnotatedGauge:0x7fa5588ac020 )>",
"<NSLayoutConstraint:0x7fa5588afdc0 V:[UILabel:0x7fa5588ade20(12)]>",
"<NSLayoutConstraint:0x7fa5588afd10 V:[UILabel:0x7fa5588ade20]-(0)-[UILabel:0x7fa5588ae800'3,74']>",
"<NSLayoutConstraint:0x7fa5588affc0 V:[UILabel:0x7fa5588ae800'3,74'(32)]>",
"<NSAutoresizingMaskLayoutConstraint:0x7fa5588e6380 h=--& v=--& UILabel:0x7fa5588ae800'3,74'.midY == + 39>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fa5588afd10 V:[UILabel:0x7fa5588ade20]-(0)-[UILabel:0x7fa5588ae800'3,74']>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful."
Any idea? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.