Adding Custom Icons

You can add a set of custom icons and use them in your Data Perspective.

See Also
Configuring Themes
Configuring a Color Palette
Creating Display Rules
  1. From the navigation menu, select Resources > Style.
  2. Go to the Icons section, and click to upload a new set of icons.
    The Upload icons dialog opens.
  3. From Font family name, enter the name of your icon set. For example, My custom icons (see the screenshot below).
  4. From TTF or WOFF2, select the TrueType Font (TTF) or WOFF2 font file to upload.
  5. From CSS file, select the .css file containing the CSS classes mapped with the icon names.
  6. From Icons prefix, specify the prefix common to the class icons that you want to retrieve in the .css file.

    Data Perspective Studio first uses this prefix to filter the .css file and retrieve only the matching class icons. For example, if you enter icon- as prefix, it will retrieve icon-Wikipedias_W, icon-Wikipedias_W1, and icon-test from the .css file.

    .icon-Wikipedias_W:before {
      content: "\e901";
    }
    .icon-Wikipedias_W1:before {
      content: "\e902";
    }
    .icon-test:before {
      content: "\e900";
    }
    
    .someotherthing{}

    Then Data Perspective Studio uses this prefix to generate its own dictionary using the prefix and the class icon names.

    Important: The prefix must end with an hyphen "-". It must not contain any spaces and special characters, except hyphens "-" and underscores "_". For example, myfonticon-

  7. Click Upload.

Result: Your font family is now available in your Data Perspective:

  • From the Icons section in the left panel, you can then select your font family and view its configuration.
  • From the Export configuration dialog, when you Export a Data Perspective, you can select your font family in the Custom icons section.
  • From the Icon picker, which opens when you select an icon for a Data Perspective element (visualization, screen, sidebar menu), you can see your font family and its set of icons.