This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* copy_prod_sqs_to_dev.php | |
* | |
* Now that heartbeats are sent to an SQS queue it's a lot harder to get test data. The dev SQS queue occasionally | |
* gets stuff from test on-demand instances. If you're trying to do testing that can mean waiting around for hours | |
* until maybe something comes in. | |
* | |
* This script simply takes everything currently in the production SQS queue and copies it to the dev SQS queue. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
plugins: ['Chart'], | |
className: 'api-chart-view', | |
chartDataArr: [], | |
total: 0, | |
initialize: function (options) { | |
this._super('initialize', [options]); | |
this.chart = nv.models.lineChart() | |
.x(function (d) { | |
return d.x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
... | |
renderChart: function () { | |
if (!this.isChartReady()) { | |
return; | |
} | |
var self = this; | |
var id_val = ""; | |
var selector_str = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
... | |
loadData: function() { | |
var self = this; | |
var url = app.api.buildURL('Accounts/get_line_chart_data'); | |
app.api.call('read', url, null, { | |
success: function (response) { | |
_.each(response, function (data, key) { | |
self.chartDataArr.push(data); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="chart-section"> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined('sugarEntry') || !sugarEntry) { | |
die('Not A Valid Entry Point'); | |
} | |
require_once 'clients/base/api/ModuleApi.php'; | |
class chartInfoAPI extends ModuleApi | |
{ | |
public function registerApiRest() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
... | |
renderChart: function () { | |
if (!this.isChartReady()) { | |
return; | |
} | |
d3.select(this.el).select('#example-chart1 svg') | |
.datum(this.bluered) | |
.transition().duration(500) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
... | |
loadData: function() { | |
this.bluered = { | |
data: [ | |
{ | |
key: "Blue Stuff", | |
values: [ | |
{ | |
x: 1, y: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
plugins: ['Chart'], | |
className: 'single-chart-view', | |
chartData: {}, | |
total: 0, | |
initialize: function (options) { | |
this._super('initialize', [options]); | |
this.chart = nv.models.lineChart() | |
.x(function (d) { | |
return d.widget_points; |
NewerOlder