Jump to content

File:USD rate to CNY from 1981 to 2019.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 512 × 256 pixels, file size: 12 KB)

Summary

Description
中文:美圆兑换人民币的汇率变动(1981年—2019年)
Date
Source Own work (数据/Data: Federal Reserve System)
Author 笔尖留痕
SVG development
InfoField
 
The SVG code is valid.
 
This chart was created with Gnuplot.
 
This plot uses embedded text/digits.
Source code
InfoField

Gnuplot code

#!/usr/bin/gnuplot
# gnuplot 4.2
# gnuplot script for plotting eurofxref-hist.csv as obtained from
# http://www.federalreserve.gov/datadownload/Choose.aspx?rel=H10
# Code modified from: https://commons.wikimedia.org/wiki/File:USD_rate_to_CNY.svg
# Gorgo < https://commons.wikimedia.org/wiki/User:Gorgo >, CC BY-SA 3.0
# download and unzip data if not available
! [ -f FRB_H10.csv ] || wget -O FRB_H10.csv "http://www.federalreserve.gov/datadownload/Output.aspx?rel=H10&series=c5d6e0edf324b2fb28d73bcacafaaa02&lastObs=&from=01/01/1971&to=05/01/2019&filetype=csv&label=include&layout=seriescolumn"

#input
set timefmt "%Y-%m"
set datafile missing 'ND'
set datafile separator ','

#output
set key top left
set style data lines
set grid

set xdata time
set format x '%Y'
set xtics 157680000
set xrange ['1980-01':'2019-05']
#set mxtics 4

set ylabel 'CNY'
set format y '%.2f'

set term svg size 800,400 font "Arial,10"

set outp 'USD rate to CNY from 1980 to 2019.svg'
set style line 1 lt rgb 'blue' lw 1.5

#available currencies:
#first one is $2, second $3 and so on
#Currency:USD,USD,USD,USD,BRL,CAD,CNY,DKK,HKD,INR,JPY,MYR,MXN,NOK,ZAR,SGD,KRW,LKR,SEK,CHF,TWD,THB,VEB

plot 'FRB_H10.csv' every ::6 usi 1:($8) title '1 USD in CNY' ls 1

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

21 May 2019

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:24, 21 May 2019Thumbnail for version as of 15:24, 21 May 2019512 × 256 (12 KB)Renamed user 795af27dd6d87f34User created page with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata