Wondering what’s next for npm?Check out our public roadmap! »

@snlab/florence

0.2.0 • Public • Published

Florence

Florence is a data visualization framework, based on the grammar of graphics, built on top of Svelte's template syntax.

Florence is built on top of existing open web standards that are already in intensive use for online map making today, but provides a framework that is firmly based on cartographic and visualization theory.

We adopt concepts from Bertin’s Semiology of Graphics and Wilkinson’s Grammar of Graphics to create a ‘language’ with a limited number of core concepts or verbs that are combined with a declarative style of ‘writing’ visualizations.

For more information, including documentation and interactive examples, check out https://florence.spatialnetworkslab.org/.

Installation

Florence is available on NPM and can be added to any existing Svelte project by running npm install @snlab/florence. Florence exports a series components that can be used using ES6 imports. For example:

<script>
  import { Graphic, Point } from "@snlab/florence"
</script>

<Graphic width={500} height={500}>
  <Point x={250} y={250} radius={50} />
</Graphic>

To start from scratch, you can use the florence-template with snowpack to get a nice starter template running in seconds. All you need to do is:

npx create-snowpack-app my-florence-app --template @snlab/florence-template

This will create a new Florence project in the my-florence-app directory. After you change into that directory (cd my-florence-app), you run npm start to run a development server and start coding.

Keywords

none

Install

npm i @snlab/florence

DownloadsWeekly Downloads

191

Version

0.2.0

License

none

Unpacked Size

598 kB

Total Files

186

Last publish

Collaborators

  • avatar
  • avatar