MindFusion.Charting for JavaScript Programmer's Guide
Unit.parse Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Creates a Unit instance from a string representation.

Namespace: MindFusion.Common
File: Unit.js

## Syntax

JavaScript Copy Code
function parse (value)

### Parameters

value

  Type: String
  String. The string representation of the unit.

### Return Value

Unit. The new Unit, or null if the string is invalid.

## Example

The following code creates a new Unit using the parse method.

JavaScript Copy Code
var myMeasure = "80"; var unit = ui.Unit.parse(myMeasure);

## See Also

Unit Members
Unit Class
MindFusion.Common Namespace