Stock Charts
B2i’s stock chart has many customization options.
After installing and activating the B2i plugin, please visit “Settings / B2i Options” in your WordPress installation for a complete list of customization options.
Stock Chart Examples
Shortcode Breakdownb2i_chart
Modulee="NYSE : "
Text in front of Symbol in backgroundsd="EAT : BRINKER"
Symbol override for displayc="336699"
Hex color code for Data line and area fill colorcc="a02424"
Hex color code for cursor colorJavaScript API Breakdown
oChart.Exchange= “NYSE | BRINKER “;
oChart.SymbolDisplay=”EAT : Brinker International”;
oChart.sDiv = “chartdiv”;
oChart.Symbol = “EAT”;
oChart.Period= “3”;
oChart.FillColor = “336699”;
oChart.CursorColor=”a02424″;
GetChart();
[b2i_chart e="NYSE | " s="EAT" sd="Brinker International | EAT " c="336699" cc="a02424"]
b2i_chart
Modulesd="EAT : Brinker International"
Symbol override for displayc="336699"
Hex color code for Data line and area fill colorfa="0"
Fill alpha 0 for nonecc="336699"
Hex color code for cursor colorct="smoothedLine"
Chart typelc3="336699"
Inside label colorvic="0"
Values inside chart turn offlm="60"
Left Margin increaded for value labels on outsidecba="0"
Chart border alpha – turned offudg="1"
Use dash grid instead of linesvct="line"
set volume chart to type “line” instead of default “column”vfa="0"
Volume fill alphassb="0"
Show scroll bar turned offJavaScript API Breakdown
oChart.sDiv = “chartdiv”;
oChart.Symbol = “EAT”;
oChart.SymbolDisplay=”EAT : Brinker International”;
oChart.Period= “3”;
oChart.FillColor = “336699”;
oChart.FillAlpha= 0;
oChart.InsideLabelColor=”336699″;
oChart.ChartType=”smoothedLine”;
oChart.LeftMargin= “60”;
oChart.ValueInsideChart= false;
oChart.LineThickness= “2”;
oChart.ChartBorderAlpha=.0;
oChart.UseDashGrid=1;
oChart.VolumeChartType=”line”;
oChart.VolumeFillAlpha=0;
GetChart();
[b2i_chart sdiv="chart2" s="EAT" sd="EAT : Brinker International" udg="1" c="336699" cc="336699" lc3="336699" fa="0" ct="smoothedLine" vic="0" lm="60" cba="0" udg="1" vct="line" vfa="0" ssb="0"]
b2i_chart
Modulesd="Brinker International Inc."
Symbol override for displayc="336699"
Hex color code for Data line and area fill colorfa="0"
Fill alpha 0 for nonelt="4"
Inside label colorcc="336699"
Hex color code for cursor colorct="smoothedLine"
Chart typelc3="336699"
Inside label colorla3="0.5"
Inside label alphacba="0"
Chart border alpha – turned offudg="1"
Use dash grid instead of linesvfa=".2"
Volume fill alphassb="0"
Show scroll bar turned offstl="0"
Show top label turned off
JavaScript API Breakdown
oChart.SymbolDisplay=”Brinker International Inc.”;
oChart.sDiv=”chart3″;
oChart.Symbol=”EAT”;
oChart.Period=”3″;
oChart.FillColor=”578727″;
oChart.FillAlpha=0;
oChart.LineThickness=”4″;
oChart.InsideLabelColor=”578727″;
oChart.ChartBorderColor=”578727″;
oChart.InsideLabelAlpha=0.5;
oChart.ChartBorderAlpha=.1;
oChart.UseDashGrid=1;
oChart.VolumeFillAlpha=.2;
oChart.ShowScrollBar=false;
GetChart();
[b2i_chart sdiv="chart3" s="EAT" sd="Brinker International Inc." udg="1" c="578727" cc="578727" lt="4" lc3="578727" fa="0" cba=".1" udg="1" vfa=".2" ssb="0" la3="0.5" stl="0"]
Style added:
#whitechartcolorBG{ background-color: #006de2; }
[b2i_chart sdiv="whitechartcolorBG" width="550px" height="350px" s="EAT" sd=" " fa="0" c="d1d1ff" ca=".1" lc2="ffffff" lc3="ffffff" lc="ffffff" bga="0" ssb="0" vct="line" vfa=".1" ga="0" cba="0" sv="0" sc="1" lm="15"]