1001 Freelance Projects
Latest Projects from Freelance Marketplaces
Today is: 05-May-2024 12:04 GMT
View Project
View this project in detail (Note: you will be redirected to external marketplace)
Project title: PHP Function for Histograms and Scattergrams
Posted by: External project from PeoplePerHour
Started: 21-May-2023 06:35 GMT
Description: We need a PHP function that generates histograms and scattergrams.

In the case of histograms, the parameters "data" and "fill_color" are always present and, optionally, a parameter "thresholds" can be present. The parameter "data" is a sequence of hexadecimal values representing each point of the histogram curve on the y-axis, where each hexadecimal value consists of two ASCII characters. Let's say we have the string 5B97B9. In a coordinate system, this would give a value of 91 for the first data point (x = 1; y = 91), a value of 151 for the second point (x = 2; y = 151), and a value of 185 for the third point (x = 3; y = 185). A line chart should be drawn for these data points.

The optional parameter "thresholds" is a data stream of hexadecimal values representing reference values. These would have to be drawn on the diagram as vertical dashed lines. If we take the string 142C in hexadecimal notation as an example, we would have the decimal values 20 and 44 in this case; correspondingly, dashed lines would have to be drawn for the x-values 20 and 44.

The resulting image should always be 600 * 600 pixels. The x-axis should be labeled with units. Depending on the measurement parameters, there can be different maximum values in the x or y direction. The diagram would therefore have to be scaled accordingly depending on the measuring range. The area below the line should be colored in the hex-coded fill color passed to the function (e.g. ff0000).

Attached you can see an example how the histogram should look like.

In the case of a scattergram, the function should take four parameters: "x_coordinates", "y_coordinates", "pulse_count" and "population_type". The raw data of scattergrams has a grid size of 256 * 256 pixels. The base point is at the top (!) left. Analogous to histograms, all four parameters contain a data stream with hex-coded values, with each value representing a pixel of the scattergram. The x- and y-coordinates of the raw data are between 0 and 255. The pulse count is the number of pulses for each pixel at the same location and can have values between 1 and 31; the higher the number of pulses, the more intense the color of the respective pixel should be. Each population type should be given its own specific color code, which can be one of the following values:

01: Lymphozyten
02: Monozyten
03: Neutrophile
04: Eosinophile
05: Erythrozyten
06: Basophile
07: kernhaltige Vorstufen von Erythrozyten

Let's assume the data stream starts with these values:

x_coordinates: 71...
y_coordinates: 51...
pulse_count: 15...
population_type: 02...

This would mean that the first pixel has the x-coordinate 113 and the y-coordinate 81, a pulse count (color intensity) of 21 and belongs to population 2.

The result should look like the attached image.

The base point in the generated image should be at the bottom (!) left. Distinctly different colors should be used for each of the seven population types. Within each population there are different color intensities depending on the number of pulses.

A legend would have to be integrated for the individual population groups if the respective population group occurs in a scattergram. This can be done as in the example attached, although the calculation of the respective placement might be a bit tricky. It would also be okay if a legend with the assignment of the corresponding color code to a population type is integrated below the scattergram.

The resulting image of the actual scattergram should be 600 * 600 pixels in size. If the legend is placed below the scattergram, an additional space of about 200 pixels in height can be used for it.

Both the histograms and the scattergrams should be drawn on a white background with black axes. The images should be generated as PNGs and returned by the function as a string.

The code should be fully compatible with PHP 8.2. Either two separate functions or one function can be developed for the histogram and scattergram. The code should work with PHP's integrated functions, so no external libraries should be used for it.
Project ID: 3326908
Project category:
Project budget:
View this project in detail (Note: you will be redirected to external marketplace)
Last Projects / Browse Projects
  Project Started
Playful Personal Celebration Graphic Design
Category: Graphic Design, Illustration, Logo Design, Photoshop
Budget: ₹700 - ₹2500 INR
05-May-2024
10:04 GMT
Experienced React JS Developer for Advanced Web App Development
Category: CSS, HTML, JavaScript, React.js, Web Design
Budget: $100 - $300 USD
05-May-2024
10:04 GMT
Steel Catalogue Website Development
Category: Graphic Design, HTML, PHP, User Interface / IA, Web Design
Budget: ₹37500 - ₹75000 INR
05-May-2024
10:03 GMT
PDF to Table for Meeting Diary
Category: Data Entry, Data Processing, Excel, PDF, Word
Budget: €8 - €30 EUR
05-May-2024
10:03 GMT
Shoecaresssss
Category: ECommerce, Graphic Design, HTML, PHP, Web Design
Budget: $250 - $750 USD
05-May-2024
10:01 GMT
Web-Based Account Receivable Software
Category: MySQL, PHP, Software Architecture, Software Development, Web Design
Budget: ₹1500 - ₹12500 INR
05-May-2024
10:00 GMT
Website one.com in wordpress
Category: Graphic Design, HTML, PHP, Web Design, WordPress
Budget: €30 - €250 EUR
05-May-2024
10:00 GMT
Spoken Word Audio Amplification
Category: Audio Production, Audio Services, Music, Sound Design, Voice Talent
Budget: ₹600 - ₹1500 INR
05-May-2024
10:00 GMT
Adobe Animate 2D Animation for website
Category: Adobe Animate, Animation, Graphic Design
Budget: $30 - $250 USD
05-May-2024
09:59 GMT
Modern Residential Architectural Design Needed
Category: 3D Rendering, AutoCAD, Building Architecture, Home Design, Interior Design
Budget: $250 - $750 USD
05-May-2024
09:58 GMT
Photo Editing: Forehead Swelling Effect
Category: Adobe Lightroom, Photo Editing, Photography, Photoshop, Photoshop Design
Budget: ₹600 - ₹1500 INR
05-May-2024
09:57 GMT
Branding Design for Discord Platform
Category: Graphic Design, Illustration, Logo Design, Photoshop
Budget: $30 - $250 USD
05-May-2024
09:57 GMT
Record and script localization Medical translator and auditor (Spanish)
Category: Castilian Spanish Translator, English (UK) Translator, English (US) Translator, Spanish Translator, Translation
Budget: €750 - €1500 EUR
05-May-2024
09:56 GMT
Modern Residential House Architect Needed
Category: 3D Rendering, AutoCAD, Building Architecture, Home Design, Interior Design
Budget: $250 - $750 USD
05-May-2024
09:54 GMT
Engaging Social Media Ad Design
Category: Banner Design, Graphic Design, Illustration, Logo Design, Photoshop
Budget: $10 - $30 USD
05-May-2024
09:53 GMT
Browse All Projects
Projects by Skills ...
Projects for 'android'
Projects for 'ajax'
Projects for 'asp'
Projects for 'aspnet'
Projects for 'cms'
Projects for 'cpp'
Projects for 'csharp'
Projects for 'css'
Projects for 'delphi'
Projects for 'design'
Projects for 'drupal'
Projects for 'excel'
Projects for 'facebook'
Projects for 'flash'
Projects for 'html'
Projects for 'java'
Projects for 'javascript'
Projects for 'joomla'
Projects for 'iphone'
Projects for 'mysql'
Projects for 'photoshop'
Projects for 'php'
Projects for 'python'
Projects for 'ruby'
Projects for 'seo'
Projects for 'sql'
Projects for 'sysadm'
Projects for 'translate'
Projects for 'typing'
Projects for 'twitter'
Projects for 'vbnet'
Projects for 'xml'
Projects for 'wordpress'
Projects for 'writing'
Read RSS feeds ... New!
RSS feed for 'android'
RSS feed for 'ajax'
RSS feed for 'asp'
RSS feed for 'aspnet'
RSS feed for 'cms'
RSS feed for 'cpp'
RSS feed for 'csharp'
RSS feed for 'css'
RSS feed for 'delphi'
RSS feed for 'design'
RSS feed for 'drupal'
RSS feed for 'excel'
RSS feed for 'facebook'
RSS feed for 'flash'
RSS feed for 'html'
RSS feed for 'java'
RSS feed for 'javascript'
RSS feed for 'joomla'
RSS feed for 'iphone'
RSS feed for 'mysql'
RSS feed for 'photoshop'
RSS feed for 'php'
RSS feed for 'python'
RSS feed for 'ruby'
RSS feed for 'seo'
RSS feed for 'sql'
RSS feed for 'sysadm'
RSS feed for 'translate'
RSS feed for 'typing'
RSS feed for 'twitter'
RSS feed for 'vbnet'
RSS feed for 'xml'
RSS feed for 'wordpress'
RSS feed for 'writing'
New!
Проекты на русском
(Projects in Russian)

Short URL:
1001fp.com
Mobile version:
m.1001freelanceprojects.com
Copyright © 2005-2022 1001 Freelance Projects