A
A
Alexey Skahin2015-05-05 12:06:35
Regular Expressions
Alexey Skahin, 2015-05-05 12:06:35

How to combine little significant sectors of the ExtJs pie chart into one "Other"?

Good afternoon,
there is a graph
6e6451798fec497aaf97603fbeccd325.png
in it there are a bunch of indistinguishable sectors with small numbers, I would like to combine them all into one with the name "Other".
A cursory googling didn't turn up any results. Actually the question is, can this be solved using ExtJs or is this done on the server side: sql query or bypassing the array?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vasya, 2018-05-17
@ilysion_in_life

$newHtml = preg_replace("/(<script.*?someuniqtext.*?\/script>/ms", "", $oldHtml);

Upd:
s modifier for multiline tag,

L
Lander, 2018-05-17
@usdglander

Well, apparently something like this:
upd: If you didn't catch it: Bring at least part of the script or page code...
upd2: Well, or use Noizefan zzz 's solution .

U
Uno, 2018-05-17
@Noizefan

1. You make a regular
program 2. You cut out only this one, the one you need, not another script

X
xmoonlight, 2015-05-05
@pihel

sum values ​​below the threshold - religion no longer allows?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question