Skip to content

Polar Chart

Olivier Carpentier edited this page Nov 6, 2016 · 8 revisions

Note: The SharePoint Framework is currently in preview and is subject to change. SharePoint Framework client-side web parts are not currently supported for use in production environments.

Polar Chart Web Part Overview

The Polar Chart Web Part is a SharePoint client side web part built with the SharePoint Framework (SPFx). This web part insert a Polar Chart in your pages, and you can manage the polar settings as items, color, title, legends, etc. This web part uses chart.js lib. This web part uses also the Custom Fields library to enhance the web part edition experience.

Polar Chart

Properties

You can manage the following settings:

  • items: a collection of items with the following properties: Label, Value, Color, Hover Color
  • responsive: indicates if the chart will automatically fit the parent zone size
  • width: if responsive is false, sets the chart width
  • height: if responsive is false, sets the chart height
  • animateRotate: rotate animation enabled or not
  • animateScale: scale animation enabled or not
  • titleEnable: show the title
  • title: title text
  • position: title position (left, top, bottom, right)
  • titleFont: title font
  • titleSize: title font size
  • titleColor: title font color
  • legendEnable: show the legend
  • legendPosition: legend position (left, top, bottom, right)
  • legendSize: legend size
  • legendColor: legend color

Screenshots

3DCarousel

Source Code

https://github.com/OlivierCC/spfx-40-fantastics/tree/master/src/webparts/polarChart

Minimal Path to Awesome

  • Clone this repository
  • in the command line run:
    • npm install
    • gulp serve

Version history

Version Date Comments
1.0 October 2016 Initial release

Solution

Solution Author(s)
spfx-40-fantastics Olivier Carpentier (@olivierc)

The MIT License (MIT)

Copyright (c) 2016 Olivier Carpentier

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.