Skip to content

Instantly share code, notes, and snippets.

@npow
Created November 8, 2012 16:53
Show Gist options
  • Save npow/4040025 to your computer and use it in GitHub Desktop.
Save npow/4040025 to your computer and use it in GitHub Desktop.
Financial Chart
<html>
<head></head>
<body>
<script src="scripts/webchart_en.min.js"></script>
<div id="chartHolder" style="width:600px;height:400px;" />
<script>
var chartObj = new TRWebchart_Fin.TRCompositeChart("chartHolder", TRWebchart_Shared.ChartSchemeType.Light);
chartObj.setChartParams(["IBM.N"], TRWebchart_Shared.ChartType.Line, TRWebchart_Fin.Intervals.Daily, TRWebchart_Fin.TimePeriods.Latest6Months, null /* resultTagList */, "" /* currency */, "" /* unit */);
chartObj.setChartTitle("IBM.N Daily 6M");
chartObj.invalidateData();
chartObj.render();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment