Code Monkey home page Code Monkey logo

microgauge's Introduction

MicroGauge

MicroGauge is a .Net library for easily creating customizable radial and linear gauges. Inspired by MicroCharts, it minimalist library designed just for gauges. It uses the SkiaSharp graphics library to deliver sharp and efficient visuals.

Key Features

  • Radial Gauges: Choose from full-circle, half-circle, and fitted styles to meet design aesthetics.
  • Linear Gauges: Implement vertical or horizontal orientations to meet interface needs.
  • Customization: Configure backing, scale, tick (minor/major), label, value, needle, and range via attributes.
  • Cross-Platform Compatibility: Works with all the platforms that SkiaSharp supports.
  • Framework: Xamarin, Maui, WPF, and Blazor libraries are provided with tags and bindings for customization.

Gallery

Gallery


Nuget Packages

NuGet Version

NuGet Version

NuGet Version

NuGet Version

NuGet Version


Tag Reference


Xamarin.Forms Usage

Nuget Package Install

dotnet add package MicroGauge.Forms

Namespace Attribute

xmlns:microGauge="clr-namespace:MicroGauge.Forms;assembly=MicroGauge.Forms"

XAML

<microGauge:XfGaugeRadial Value="15"  NeedleBrush="#008000" />
<microGauge:XfGaugeLinear Value="15"  NeedleBrush="#008000" />

C#

XfGaugeRadial radialGauge = new XfGaugeRadial
{
    Value = 15.0, NeedleBrush = new SolidColorBrush(Color.Green)
};
XfGaugeLinear linearGauge = new XfGaugeLinear
{
    Value = 15.0, NeedleBrush = new SolidColorBrush(Color.Green)
};

Examples


.Net MAUI Usage

Nuget Package Install

dotnet add package MicroGauge.Maui

Namespace Attribute

xmlns:microGauge="clr-namespace:MicroGauge.Maui;assembly=MicroGauge.Maui"

XAML

<microGauge:MauiGaugeRadial Value="15" NeedleBrush="#008000" />
<microGauge:MauiGaugeLinear Value="15" NeedleBrush="#008000" />

C#

MauiGaugeRadial radialGauge = new MauiGaugeRadial
{
    Value = 15.0, NeedleBrush = new SolidColorBrush(Colors.Green)
};
MauiGaugeLinear linearGauge = new MauiGaugeLinear
{
    Value = 15.0, NeedleBrush = new SolidColorBrush(Colors.Green)
};

Examples


WPF Usage

Nuget Package Install

dotnet add package MicroGauge.Wpf

Namespace Attribute

xmlns:microGauge="clr-namespace:MicroGauge.Wpf;assembly=MicroGauge.Wpf"

XAML

<microGauge:WpfGaugeRadial Value="15" NeedleBrush="#008000" />
<microGauge:WpfGaugeLinear Value="15" NeedleBrush="#008000" />

C#

WpfGaugeRadial radialGauge = new WpfGaugeRadial
{
    Value = 15.0, NeedleBrush = new SolidColorBrush(Colors.Green)
};
WpfGaugeLinear linearGauge = new WpfGaugeLinear
{
    Value = 15.0, NeedleBrush = new SolidColorBrush(Colors.Green)
};

Examples



Blazor Usage

Nuget Package Install

dotnet add package MicroGauge.Blazor

Namespace Using

@using MicroGauge.Blazor

Razor

<BlazorGaugeRadial Value="15" NeedleBrush="GaugeBrushes.Green" />
<BlazorGaugeLinear Value="15" NeedleBrush="GaugeBrushes.Green" />

C#

BlazorGaugeRadial radialGauge = new BlazorGaugeRadial
{
    Value = 15.0, NeedleBrush = GaugeBrushes.Green
};
BlazorGaugeLinear linearGauge = new BlazorGaugeLinear
{
    Value = 15.0, NeedleBrush = GaugeBrushes.Green
};
}

Examples

License

MIT © Galen Blakeman

microgauge's People

Contributors

galenblakeman avatar

Stargazers

Darko avatar Gregory Kieffer avatar  avatar Ceej - The MSP Automator avatar Marco Wagner avatar  avatar Jorge Utrilla Santos avatar Ján Bočínec avatar Bryan Black avatar Matthew Severson avatar S Ravi Kumar avatar  avatar Luis Fernando de Souza Santos avatar Mladen Macanović avatar Harry avatar Julian Rich avatar  avatar  avatar Byron Mayne avatar Dabbles in too many things avatar Mohamed Sherif avatar  avatar R. Abächerli avatar Jack Leighton avatar CodeConscious avatar mike lorengo avatar László Dániel avatar Nick Peppers avatar Diego Ribeiro avatar Matt Goldman avatar  avatar  avatar Ben-ThinkGeo avatar

Watchers

 avatar Julian Rich avatar

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.