Skip to content

Instantly share code, notes, and snippets.

View chris-vecchio's full-sized avatar

Chris Vecchio chris-vecchio

View GitHub Profile
.highcharts-menu > hr {
display: block !important;
border: 1px gray solid !important;
margin-block-start: 0.5em !important;
margin-block-end: 0.5em !important;
margin-inline-start: auto !important;
margin-inline-end: auto !important;
-moz-float-edge: margin-box !important;
box-sizing: content-box !important;
}
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
@page PDF {
size: letter landscape;
margin: 0in;
}
div.container {
page: PDF;
max-width: 8.5in;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="./favicon.ico">
<title>Recent Federal Reserve Research</title>
var chartData = {
chart: {
type: 'line',
ganame: 'mediancpi_homepage',
marginRight: 15,
spacingBottom: 25,
style: {
fontFamily: 'Helvetica, sans-serif'
},
events: {
var chartData = {
chart: {
type: 'bar',
width: null,
height: null,
marginRight: 35,
spacingBottom: 25,
style: {
fontFamily: 'Arial, Helvetica, sans-serif'
},
@chris-vecchio
chris-vecchio / nice-scale.js
Last active October 9, 2018 14:25 — forked from igodorogea/nice-scale.js
Javascript - Algorithm for Optimal Scaling on a Chart Axis (Nice Numbers for Graph Labels)
function NiceScale(lowerBound, upperBound, _maxTicks) {
var maxTicks = _maxTicks || 10;
var tickSpacing;
var range;
var niceLowerBound;
var niceUpperBound;
calculate();
var chartData = {
chart: {
type: 'line',
ganame: 'mediancpi_hp',
marginRight: 15,
spacingBottom: 25,
style: {
fontFamily: 'Helvetica, sans-serif'
},
events: {