anychart.onDocumentReady(function () {
{ x: "Managing the loan or lease", value: 15265 },
{ x: "Problems when you are unable to pay", value: 7678 },
{ x: "Taking out the loan or lease", value: 4370 },
{ x: "Shopping for a loan or lease", value: 2029 },
{ x: "Managing the line of credit", value: 806 },
{ x: "Other issues", value: 1427 }
let chart = anychart.pareto(data);
let column = chart.getSeriesAt(0);
let line = chart.getSeriesAt(1);
chart.yAxis(0).title("Issue frequency");
chart.yAxis(1).title("Cumulative percentage");
chart.title("Consumer Loan Customer Complaints (CFPB)");
chart.container("container");