Giter VIP home page Giter VIP logo

download-report-bookmarklet's Introduction

Download Report Builder Chart from Browser ๐Ÿ“Š

A small bookmarklet for downloading reports from Jazz Report Builder as SVG files.

This will create an SVG file with the report looking exactly as it does in the browser. Report builder has the option to export as an SVG file but it doesn't look exactly the same. For example, the text size is much smaller in the exported SVG file created by report builder.

Usage

  • Drag this bookmarklet ๐Ÿ“ˆ Download Report ๐Ÿ“‰ into the bookmarks bar.
  • Open a report in report builder and run it.
  • When the report is loaded, click the "Download Report" bookmark.
  • Within seconds, the report should automatically download as an SVG file.

Editing

If you would like to customize the bookmarklet you can clone this repository or just download the index.js file.

Make the changes that you want to the JavaScript code and save the file. Then follow the instructions below to create a bookmarklet.

Create Bookmarklet

  • Install node-minify globally using the two commands below (requires node and npm to be installed)
    • npm install -g @node-minify/cli
    • npm install -g @node-minify/terser
  • Run node-minify with the following command from the directory containing index.js
    • node-minify --compressor terser --input index.js --output index.min.js
  • Open index.min.js and copy the contents
  • Go to Chrome and right click on the bookmarks bar -> Add Page...
  • Give it a name e.g. 'Download Report'
  • In the URL input type javascript: and then paste the contents of index.min.js
  • Save the bookmark

Note: If you want to create a link on a webpage, be sure to first encode the JavaScript with encodeURI(`code`).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.