Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

palantir/plottable-moment

Repository files navigation

Plottable date/time formatting library built on Moment.js

Overview

Add-on library for Plottable to help format dates and times. Plottable-Moment is built on Moment.js. You can use a number of formatting options for date and times, or select a locale (through Moment) to set a default, region-specific date/time format.

Plottable-moment is the easiest way to get localization for Plottable time axes. It provides immediate access to dozens of locale options in Plottable.

Installation

  • Through bower: bower install --save plottable-moment

Using Plottable-Moment in your Webpage

  1. Install plottable-moment.
  2. On your webpage, be sure to load the scripts in the following order:
  • D3
  • plottable
  • Moment
  • plottable-moment

For more help on using Moment, see the Moment documentation.

Contributing to Plottable-Moment

  1. Clone this repository.
  2. Install node: https://nodejs.org/en/download/
  3. Install bower, gulp, and gulp-cli globally on your system: npm install -g bower gulp gulp-cli
  4. Install dependencies through bower: bower install
  5. Install dependencies through npm: npm install
  6. Write your source code and tests.
  7. Fill out the Personal or Corporate Contributor License Agreement and send it to opensource@palantir.com. (You can do this easily on a Mac by using the Tools > Annotate > Signature feature in Preview.)
  8. Submit a pull request with your changes.

License

The MIT License (MIT)

Copyright (c) 2015 Palantir Technologies

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.