This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Bitcoin Charts Widget

Description

This widget displays bitcoin charts with data from different external services.
Currently, the widget supports blockchain.info but can be extended easily.

As usual, you can adjust the widget’s settings to your taste through the admin backend.

Additionally, you can include the widget using shortcode.

Short code

The shortcode is [btcchart style=”btc-500×330″ chart=”trade-volume”]

  • chart is one of:

    • total-bitcoins
    • market-cap
    • transaction-fees
    • transaction-fees-usd
    • network-deficit
    • n-transactions
    • n-transactions-total
    • n-transactions-excluding-popular
    • n-unique-addresses
    • n-transactions-per-block
    • n-orphaned-blocks
    • output-volume
    • estimated-transaction-volume
    • estimated-transaction-volume-usd
    • trade-volume
    • market-price
    • cost-per-transaction-percent
    • cost-per-transaction
    • hash-rate
    • difficulty
    • miners-revenue
    • avg-confirmation-time
    • bitcoin-days-destroyed-cumulative
    • bitcoin-days-destroyed
    • bitcoin-days-destroyed-min-week
    • bitcoin-days-destroyed-min-month
    • bitcoin-days-destroyed-min-year
    • blocks-size
    • my-wallet-transaction-volume
    • my-wallet-n-users
    • my-wallet-n-tx
  • style is one of (see styles.json for predefined ones)

    • default
    • btc-162×150
    • btc-250×165
    • btc-500×330
    • btc-700×450
    • orange-162×150
    • orange-250×165
    • orange-500×330
    • orange-700×450
    • blue-162×150
    • blue-250×165
    • blue-500×330
    • blue-700×450
    • (162×150 indicates the width in pixel)
  • there are the following additional styling options (overriding the style):

    • width: pixel
    • height: pixel
    • curve_color: #RRGGBB
    • background_color: #RRGGBB
    • background_gradient: Start:#RRGGBB,End:#RRGGBB
    • title_font: fontfile.ttf,height_in_pixel,#RRGGBB
    • default_font: fontfile.ttf,height_in_pixel,#RRGGBB
    • x-axis-label-rotation: degrees
    • x-axis-date-format: format string for date (M.Y or Y, etc.)
    • graph-area: left,top,right,bottom (all in pixel)
    • label: Data curve legend

      RRGGBB is a hexadecimal color code red, green, blue from 00 to FF

Installation

In order to install and operate this widget the following requirements must be met.

Requirements:

  • PHP 5.4+
  • cUrl
  • WordPress 3.5+
  • pChart2.1.4 (included in 3rdparty folder)

FAQ

Error “The plugin does not have a valid header”

If you receive this error message when trying to activate the plugin directly
after the installation please navigate back to the plugin list page and activate
the plugin from there.

Contributors & Developers

“Bitcoin Charts Widget” is open source software. The following people have contributed to this plugin.

Changelog

0.4.2

  • compatible with WordPress 4.7.0
  • compatible with PHP 7.x

0.4.1

  • compatible with WordPress 4.5.3

0.4.0

  • compatible with WordPress 4.2

0.3.9

  • fixed protocol for loading assets

0.3.8

  • fixed installation warning

0.3.7

  • removed warning message

0.3.6

  • compatibel to offical WordPress plugin repository

0.3.5

  • fixed labels

0.3.0

  • “title” option is now static text

0.2.0

  • added options to configuration

0.1.0

initial release