Giter VIP home page Giter VIP logo

wmgaugeview's People

Contributors

disobedientmedia avatar felix-dumit avatar jsm174 avatar sergioutama avatar will-tm 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

wmgaugeview's Issues

One More Enchancement!

One more time Hello and sorry to bother you.

If I ask you to make one more enhancement in rangeLabelsFont to have the ability to set the color of the text please do not scream!!

George Gerardis

WMGaugeViewStyle.h

Missing UIKit import reference - fails to compile without it if not using the pods install method.

import <UIKit/UIKit.h>

Needed IOS 8 Update......strange appearance of needle

Needle center is ok on IOS 7 but on IOS 8 and above, the center of needle is moved slightly on the right with the result NOT showing the values precisely.
Can you update your excellent control for IOS 8 and above?

Thank you very much

George Gerardis

Weird bug with in swift?

Hey,

I'm trying to use this library with swift, but for some reason I get this weird double drawing of numbers.. what could be the problem? someone knows?

https://imgur.com/xVrVBp3

I've added the WMGaugeView as a subview to UIView which sits inside a custom table cell. This is my code:

cell.gaugeView = WMGaugeView(frame: cell.gaugeContainerView.bounds)
cell.gaugeView?.backgroundColor = UIColor.clear
cell.gaugeView?.showScaleShadow = false
cell.gaugeView?.innerBackgroundStyle = WMGaugeViewInnerBackgroundStyleFlat
cell.gaugeView?.scalesubdivisionsaligment = WMGaugeViewSubdivisionsAlignmentCenter
cell.gaugeView?.needleScrewStyle = WMGaugeViewNeedleScrewStylePlain
cell.gaugeView!.minValue = -30
cell.gaugeView!.maxValue = 30
cell.gaugeView!.showRangeLabels = true
cell.gaugeView!.rangeValues = [10, 20, 30]
cell.gaugeView!.rangeColors = [UIColor(red: 27.0/255.0, green: 202.0/255.0, blue: 33.0/255.0, alpha: 1.0), UIColor(red: 232.0/255.0, green: 111.0/255.0, blue: 33.0/255.0, alpha: 1.0), UIColor(red: 231.0/255.0, green: 32.0/255.0, blue: 43.0/255.0, alpha: 1.0)]
cell.gaugeView!.rangeLabels = ["SAFE FREEZER ZONE", "HIGH", "DANGER ZONE"]
cell.gaugeView!.unitOfMeasurement = "temp"
cell.gaugeView!.showUnitOfMeasurement = true
cell.gaugeView!.scaleDivisionsWidth = 0.008
cell.gaugeView!.scaleSubdivisionsWidth = 0.006
cell.gaugeView!.rangeLabelsFontColor = UIColor.black
cell.gaugeView!.rangeLabelsWidth = 0.04
cell.gaugeView!.rangeLabelsFont = UIFont(name: "Helvetica", size: 0.04)
cell.gaugeView!.setValue(Float(item.temperature!), animated: true, duration: 5.0)
cell.gaugeContainerView.addSubview(cell.gaugeView!)

Thanks

WMGauge not working in iOS 6.

I am getting this error.

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString sizeWithAttributes:]: unrecognized selector sent to instance 0xa4c02d0'

in my iOS 6

A possible improvment

Hello again,
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

Negative value

Is it possible to have negative value in Gauge Charts? Thanks

Guage subdivisions

I changed the following _gaugeView.maxValue = 240.0; _gaugeView.showRangeLabels = YES; _gaugeView.rangeValues = @[ @50, @90, @130, @240.0 ]; into _gaugeView.maxValue = 1000; _gaugeView.showRangeLabels = YES; _gaugeView.rangeValues = @[ @50, @90, @600, @1000.0 ]; and I am getting the output as
img_0024 . That is the subdivisions are not updating properly. So I am asking is what is the algorithm we are supposed to follow here? Is there any calculations to be followed to acheive the correct view for any random value a user is giving? Thanks in advance.

EXAMPLE

Hello,

Can you help on how to use unitOfMeasurementColor ?
I try : unitOfMeasurementColor = [UIColor yellowColor];
but I got error of incompatibility UIColor and CGFloat............

George Gerardis

A small enhancement

Hi,

First off thanks for the awesome control. You provide a lot of customizations than any other gauge control.

I'd like to propose adding a property to hide/display the unit numbers. Just the scales and range colors.

Please implement it if you can. :)

Thank you.

Needle never reach target on iPhone

Hello, Good morning.
First of all thank you for fixing what I had proposed. Your help is valuable.
Now I want to INFORM you for a bug and a possible enchancement.

Bug : I have a viewcontroller with 3 subviews in each I display your tool with different value ofcourse. In Simulator everything Works fine. In Real device everything is fine except one thing. The needle in all three WMGaugeView moves all the time without to stop and point to the right values. WHY?

Thank you very much again!

George N. Gerardis

Maybe an Enhancement.....

Thank you for your fantastic Tool. Very nice indeed.
I want to propose an enhancement if you can of course.
Can we have min - max and also if we can have min negative.
Let say from min = -100 to max = 100
This will be a nice addition!
Thanks again
George N. Geradis

Error-Bug in IOS 6.0 - 6.1

Hello again,

I found a bug when your tool run on an iPhone with IOS 6.0 or IOS 6.1 and the app crashes!
I get the following error :

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString sizeWithAttributes:]: unrecognized selector sent to instance 0xa70b490'

The error happens in the following line of your code :

CGSize fontWidth = [_unitOfMeasurement sizeWithAttributes:stringAttrs];

Can you please correct this?

In IOS 7.0 everything is FINE!!!!

P.S. In XCODE if you choose Product > Archive..... You will see a lot of warnings too!

Thank you very much.

George Gerardis

pod update

Please, remove ViewController and AppDelegate .h and .m files from pod. It can lead to "duplicate symbols error". Just leave WMGaugeView .h and .m

Remarks!!!

Nice Job till now!
You help all of us using your tool.
I am waiting the bug fix about "Needle never reach target on iPhone"........
Also, are you going to add the possibility of choosing the color of the font in MeasurementUnit?

Thanks a lot

George Gerardis

Can't draw properly sub scale divisions

'drawScale:' only draw (main) scale divisions on some condition( min:0 ~ max:1 or max value is not multiple of 10, ex. 732)

i modify code that determine main or sub divisions. see below
....
int subDivs = (int)_scaleSubdivisions;
...
// Division
//if ((abs(mod - 0) < 0.000001) || (abs(mod - div) < 0.000001))
if(i == 0 || i == (totalTicks-1) || 0 == (i % subDivs) )
{

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.