Back to Data Visualization-guidelines

CSS ComponentThe latest version of this package is: 14.1.0, Opens in new window

Data visualisations are meant to visualise data in a intuitive and visually appealing way.

This component provides .css, .styl, .less and .scss -files.

To be able to install this component, please refer to the Project Setup documentation.

$ npm i @ids-core/data-visualization@14.1.0

Table of Contents

Edit this section, Opens in new window

Usage

33%
If P&C Insurance Ltd
67%
Competitors
<div class="if visualization legend">
  <div class="if item">
    <div class="if symbol" style="background-color: #0054f0;"></div>
    <div class="if set">
      <div class="if value">33%</div>
      <div class="if name">If P&C Insurance Ltd</div>
    </div>
  </div>
  <div class="if item">
    <div class="if symbol" style="background-color: #e8e0d9;"></div>
    <div class="if set">
      <div class="if value">67%</div>
      <div class="if name">Competitors</div>
    </div>
  </div>
</div>
33%
If P&C Insurance Ltd
67%
Competitors
<div class="if visualization legend">
  <div class="if item">
    <div class="if symbol line" style="background-color: #0054f0;"></div>
    <div class="if set">
      <div class="if value">33%</div>
      <div class="if name">If P&C Insurance Ltd</div>
    </div>
  </div>
  <div class="if item">
    <div class="if symbol line" style="background-color: #e8e0d9;"></div>
    <div class="if set">
      <div class="if value">67%</div>
      <div class="if name">Competitors</div>
    </div>
  </div>
</div>
2 000 000 SEK New customers throughout the fiscal year 2019 and 2020
<div class="if visualization infographic box">
  <span class="if text">
    <span class="if number">
      2 000 000
    </span>
    <span class="if postfix">SEK</span>
  </span>
  <span class="if description">
    New customers throughout the fiscal year 2019 and 2020
  </span>
</div>
9,4 Text to explain the number above
<div class="if visualization infographic box transparent">
  <span class="if text">
    <span class="if number heavy">9,4</span>
  </span>
  <span class="if description">
    Text to explain the number above
  </span>
</div>
9,4 Text to explain the number above
<div class="if visualization infographic box highlight">
  <span class="if text">
    <span class="if number heavy">9,4</span>
  </span>
  <span class="if description">
    Text to explain the number above
  </span>
</div>
Edit this section, Opens in new window

Tokens

All of the tokens can be used as preprocessor variables

Highlight

Name Value Example
$color-data-highlight-blue
#0054f0

Subtle

Name Value Example
$color-data-subtle-100
#f1ece8
$color-data-subtle-200
#ede6e1
$color-data-subtle-300
#e8e0d9

Chromatic

Name Value Example
$color-data-chromatic-dark-red
#805c5c
$color-data-chromatic-red
#ff8569
$color-data-chromatic-light-red
#ffc9a6
$color-data-chromatic-dark-yellow
#b08759
$color-data-chromatic-yellow
#fcc74f
$color-data-chromatic-light-yellow
#ffe082
$color-data-chromatic-dark-green
#6b9994
$color-data-chromatic-green
#87c7ba
$color-data-chromatic-light-green
#b5ede8
$color-data-chromatic-dark-blue
#5392b2
$color-data-chromatic-blue
#4cb0d3
$color-data-chromatic-light-blue
#97e2f7

Monochrome

Name Value Example
$color-data-monochrome-100
#e2dfde
$color-data-monochrome-200
#c5c0be
$color-data-monochrome-300
#a8a09e
$color-data-monochrome-400
#8b817e
$color-data-monochrome-500
#6e625e
$color-data-monochrome-600
#584e4b
$color-data-monochrome-700
#423a38
$color-data-monochrome-800
#2c2725
$color-data-monochrome-900
#151312
Edit this section, Opens in new window

Changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

14.0.0 (2021-11-09)

Bug Fixes

chore

  • ๐Ÿค– Rename util to utils (f78721f)

Code Refactoring

  • ๐Ÿ’ก Rename scope and repository (3ea5423)
  • ๐Ÿ’ก Use new navigation structure for documentation (415aee5), closes #490579

Documentation

  • โœ๏ธ Update links and change navigation structure (0bfd27d), closes #490579

BREAKING CHANGES

  • ๐Ÿงจ The scope for If Design System npm packages has now changed from

@if-design-system to @ids-core. We have also renamed the repository from if-design-system to ids-core

  • ๐Ÿงจ Util is now renamed to Utils
  • ๐Ÿงจ We have now changed the navigation structure for the documentation site.

Please update any saved links!

  • ๐Ÿงจ Navigation structure has now changed. Please see release notes!

13.11.0 (2021-10-19)

Features

  • ๐ŸŽธ Input field hot reload (eac76b7)

13.6.3 (2021-09-17)

Bug Fixes

12.13.1 (2021-08-11)

Bug Fixes

  • ๐Ÿ› Whitelist docs dir for npm packaging (1a5cfd0), closes #457621

12.6.0 (2021-05-27)

Bug Fixes

  • ๐Ÿ› Manually set firstPublished and lastModified (e83af7d)
  • ๐Ÿ› We don't need lastModified (e458a12)

12.3.0 (2021-05-19)

Features

  • ๐ŸŽธ Add data visualization components (b0b6016)
  • ๐ŸŽธ Add Data Visualization package (4e0f681), closes #329024
Edit this section, Opens in new window
Contact us, Opens in new window