Hi, I am new at programming and I just started a Flask project related to Stock Market. In the chart under "_function Stock_PerformanceChart2()" I am using the plugin but it doesn't seem to work (All the different lines of the chart posses the same color i.e. Grey). Can you please help me regarding this. I will be very thankful if you do so.
`function initialize(){
var active = "Active";
$.ajax({ url : '/api/initialize/user_check?JsStatus=' + active,
success: function (data) {
var user = data['user'];
var firsttime = "yes";
var olduser = "no";
var modified = "error";
if (user == firsttime){
window.location.replace("http://127.0.0.1:5000/First_Login");
}else if (user == olduser){
window.location.replace("http://127.0.0.1:5000/Scratch_start_1");
}
}
Hi, I am new at programming and I just started a Flask project related to Stock Market. In the chart under "_function Stock_PerformanceChart2()" I am using the plugin but it doesn't seem to work (All the different lines of the chart posses the same color i.e. Grey). Can you please help me regarding this. I will be very thankful if you do so.
`function initialize(){ var active = "Active"; $.ajax({ url : '/api/initialize/user_check?JsStatus=' + active, success: function (data) { var user = data['user'];
var firsttime = "yes";
var olduser = "no";
var modified = "error";
if (user == firsttime){
window.location.replace("http://127.0.0.1:5000/First_Login"); }else if (user == olduser){ window.location.replace("http://127.0.0.1:5000/Scratch_start_1"); } }
}
$('#quickstart').click(function() { window.location.replace("http://127.0.0.1:5000/quick_start_form"); });
function QuickStartSave(){
}
function Quick_Start_Analytics(){ var temp = "x"; $.ajax({ url : '/api/quick_start_form/analysis_and_optimistaion?x=' + temp, success: function (data) { $('#Portfolio_Annual_Return_Percent').html(data['Portfolio_Return_Percent'] ); $('#Current_Portfolio_Value').html('$' + data['Current_Portfolio_Value']); $('#Sharp_Ratio').html(data['Sharp_Ratio']); $('#Portfolio_Volatility').html(data['Portfolio_Volatility_Data']); $('#Portfolio_Varience').html(data['Portfolio_Varience_Data']); $('#Annual_Sharp_Ratio').html(data['Annual_Sharp_Ratio']); $('#Cumulative_Return').html(data['Cumulative_Return']); $('#Profit_Amount').html('$' +data['Profit_Amount']); Portfolio_Performance_Chart1(); Stock_Performance_Chart2();
}
function Portfolio_Performance_Chart1(){ $.ajax({ url : '/api/quick_start_form/analysis_and_optimistaion', success: function (data) {
});
}
function Stock_Performance_Chart2(){
var TITLE = 'Individual Stock Performance';
var X_AXIS = 'Time Period'; // x-axis label and label in tooltip var Y_AXIS = 'Price Normalized to 100'; // y-axis label and label in tooltip
var BEGIN_AT_ZERO = false; // Should x-axis start from 0?
true
orfalse
var SHOW_GRID = true; //
true
to show the grid,false
to hide var SHOW_LEGEND = true; //true
to show the legend,false
to hide$(document).ready(function() {
});
} `