Написать скрипт обработки строки и подстановки данных в график
4 USDНаписать скрипт обработки строки и подстановки данных в библиотеку графика.
График: highcharts.js (не удовлетворяет на 100% заказ, но максимально закрывает вопрос)
Предполагается, что программист сделает небольшой хук с кнопками графика и цветами баров
Строка имеет следующий формат (только в строку):
03072017;(;NHX9095;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
03072017;(;5LZQ093;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
04072017;(;DFBH091;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
05082017;(;IQQZ089;A;200;Z;15;B;2000;Z;10;C;3000;Z;3;);
06082017;(;NHX9095;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
09082017;(;5LZQ093;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
10092017;(;DFBH091;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
11092017;(;IQQZ089;A;200;Z;15;B;2000;Z;10;C;3000;Z;3;);
15092017;(;BSNW088;A;100;Z;10;B;1000;Z;1;C;1000;Z;2;);
(строку можно немного модифицировать, если будет необходимость или лучшее предложение для обработки данных)
Задача:
пользователь выбирает в селектах месяц и год, а скрипт ищет в строке данные за выбранный период берет данные и подставляет в API библиотеки
Еще раз обращаю внимание, что библиотека не может на 100% рисовать бары, если в строке есть несколько записей за одну дату и рисует бар на баре, а необходимо рисовать бары рядом с одинаковым цветом (необходимо применить какую-то хитрость)
API выглядит следующим образом:
Highcharts.chart('dnk', {
chart: {
type: 'column',
borderWidth: 0,
plotBorderWidth: 0,
spacingLeft: 0,
},
navigation: {
buttonOptions: {
enabled: false
}
},
title: {
tloating: false,
text: '',
},
credits: {
enabled: false,
},
xAxis: {
categories: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30' ],
},
legend: {
align: 'left',
layout: 'horizontal',
},
yAxis: {
labels: {
enabled: false,
},
title: {
text: ''
},
gridLineWidth: 0,
},
tooltip: {
formatter: function () {
return '<b>' + this.x + '</b><br/>' +
this.series.name + ': ' + this.y + '<br/>' +
'Total: ' + this.point.stackTotal;
}
},
plotOptions: {
column: {
stacking: 'normal'
}
},
// сочетание A и Z в одном free рисует бар на баре (так нужно)
series: [{
name: 'A',
data: [100, 30, 4, 7, 2, 30, 15, 70, 65, 40, 30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 2, 5, 6, 2, 1, 30, 4, 4, 2, 5],
stack: 'free'
}, {
name: 'Z',
data: [30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 100, 30, 4, 7, 2, 30, 15, 70, 65, 40, 100, 30, 4, 7, 2, 30, 15, 70, 65, 40],
stack: 'free'
}, {
name: 'B',
data: [2, 5, 6, 2, 1, 30, 4, 4, 2, 5, 30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 100, 30, 4, 7, 2, 30, 15, 70, 65, 40],
stack: 'help'
}, {
name: 'Z',
data: [100, 30, 4, 7, 2, 30, 15, 70, 65, 40, 30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 2, 5, 6, 2, 1, 30, 4, 4, 2, 5],
stack: 'help'
}, {
name: 'C',
data: [30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 30, 0, 0, 0, 0, 0, 0, 0, 0, 70, 2, 5, 6, 2, 1, 30, 4, 4, 2, 5],
stack: 'sponsor'
}, {
name: 'Z',
data: [2, 5, 6, 2, 1, 30, 4, 4, 2, 5, 30, 4, 4, 2, 5, 7, 2, 30, 15, 70,],
stack: 'sponsor'
}, {
name: 'C',
data: [30, 0, 0, 0, 0, 0, 0, 0, 0, 70, 30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 2, 5, 6, 2, 1, 30, 4, 4, 2, 5],
stack: 'sponsor-1'
}, {
name: 'Z',
data: [2, 0, 0, 0, 0, 0, 0, 0, 0, 5, 30, 4, 4, 2, 5, 7, 2, 30, 15, 70, 2, 5, 6, 2, 1, 30, 4, 4, 2, 5],
stack: 'sponsor-1'
}
]
});
-
585 34 4 1 Добрый день!
Все поправлю.
Обращайтесь.
-
234 12 1 1 Доброго дня, готовий до співпраці. Проект з highchatrs тут -
Freelancehunt
-
deleted by moderator
-
Current freelance projects in the category Javascript and Typescript
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 13 hours 16 minutes back ∙ 68 proposals |
Development of a WebGL/Three.js scene with generation and export of 3D (snapshot) from an animated shaderObject Description:The project is a designer table shaped like a realistic, deep whirlpool (a central vortex that smoothly transitions from a wide horizontal tabletop to a thin elegant leg). Task Essence:A WebGL / Creative Coding developer is required to create an interactive 3D… Javascript and Typescript, Web Programming ∙ 1 day 9 hours back ∙ 27 proposals |
Support and development of the cleaning company's website
20 USD
I'm looking for a web developer/webmaster for long-term support and development of a cleaning company's website. Website: https://donely.ca About the project DoneLy Home Services is a cleaning service company in Canada that is actively growing and expanding its geographical… Javascript and Typescript, Web Programming ∙ 3 days 11 hours back ∙ 63 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 4 days 12 hours back ∙ 27 proposals |
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 6 days 3 hours back ∙ 35 proposals |